Index: pkg/compiler/lib/src/ssa/builder.dart |
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart |
index becdaa3327037076712fb53aab1ed350720e8077..ff49942f217fafc05b58505b801a8c4e9734ec5c 100644 |
--- a/pkg/compiler/lib/src/ssa/builder.dart |
+++ b/pkg/compiler/lib/src/ssa/builder.dart |
@@ -706,8 +706,8 @@ class SsaAstGraphBuilder extends ast.Visitor |
*/ |
HGraph buildMethod(MethodElement functionElement) { |
assert(functionElement.isImplementation, failedAt(functionElement)); |
- graph.calledInLoop = |
- closedWorld.isCalledInLoop(functionElement.declaration); |
+ MethodElement declaration = functionElement.declaration; |
+ graph.calledInLoop = closedWorld.isCalledInLoop(declaration); |
ast.FunctionExpression function = resolvedAst.node; |
assert(function != null); |
assert(elements.getFunctionDefinition(function) != null); |