| Index: runtime/vm/kernel_to_il.cc
|
| diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
|
| index 185b25705fb69588616fb602c0122478a6d8f8ff..73760227dabbe7928674ab39c94203236b2e7315 100644
|
| --- a/runtime/vm/kernel_to_il.cc
|
| +++ b/runtime/vm/kernel_to_il.cc
|
| @@ -4264,12 +4264,7 @@ void FlowGraphBuilder::VisitStaticGet(StaticGet* node) {
|
| fragment_ = StaticCall(node->position(), target, 0);
|
| } else if (procedure->kind() == Procedure::kMethod) {
|
| ASSERT(procedure->IsStatic());
|
| - Function& closure_function =
|
| - Function::ZoneHandle(Z, target.ImplicitClosureFunction());
|
| - closure_function.set_kernel_function(target.kernel_function());
|
| - const Instance& closure =
|
| - Instance::ZoneHandle(Z, closure_function.ImplicitStaticClosure());
|
| - fragment_ = Constant(closure);
|
| + fragment_ = Constant(constant_evaluator_.EvaluateExpression(node));
|
| } else {
|
| UNIMPLEMENTED();
|
| }
|
|
|