Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index c411bbd2d9033f4602c452340389059a3b4d8745..6f7ff8d19090449800c2d188ebe3899374ba5bfe 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -2505,9 +2505,8 @@ void EffectGraphVisitor::VisitClosureNode(ClosureNode* node) { |
{ LocalVariable* closure_tmp_var = EnterTempLocalScope(closure_val, |
node->token_pos()); |
// Store type arguments if scope class is generic. |
- const FunctionType& function_type = |
- FunctionType::ZoneHandle(Z, function.SignatureType()); |
- const Class& scope_cls = Class::ZoneHandle(Z, function_type.scope_class()); |
+ const Type& function_type = Type::ZoneHandle(Z, function.SignatureType()); |
+ const Class& scope_cls = Class::ZoneHandle(Z, function_type.type_class()); |
if (scope_cls.IsGeneric()) { |
ASSERT(function.Owner() == scope_cls.raw()); |
Value* closure_tmp_val = Bind(new(Z) LoadLocalInstr(*closure_tmp_var, |