Index: runtime/vm/aot_optimizer.cc |
diff --git a/runtime/vm/aot_optimizer.cc b/runtime/vm/aot_optimizer.cc |
index 7a168d07f1c63232691e1e644240b48dde129bbd..513936c56eb1692baf4aace5b803d29e1262e1f9 100644 |
--- a/runtime/vm/aot_optimizer.cc |
+++ b/runtime/vm/aot_optimizer.cc |
@@ -2023,7 +2023,7 @@ void AotOptimizer::VisitPolymorphicInstanceCall( |
if (receiver_cid != kDynamicCid) { |
const Class& receiver_class = |
Class::Handle(Z, isolate()->class_table()->At(receiver_cid)); |
- const Function& function = Function::Handle( |
+ const Function& function = Function::ZoneHandle( |
Z, call->instance_call()->ResolveForReceiverClass(receiver_class)); |
if (!function.IsNull()) { |
// Only one target. Replace by static call. |