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 7f13d7dab66dd0d83e2e7998d8eadd47fe233fa9..aa7904ebc2860d4334d42cc96934ea32697adf8c 100644 |
--- a/pkg/compiler/lib/src/ssa/builder.dart |
+++ b/pkg/compiler/lib/src/ssa/builder.dart |
@@ -664,7 +664,8 @@ class SsaBuilder extends ast.Visitor |
*/ |
HGraph buildMethod(MethodElement functionElement) { |
assert(invariant(functionElement, functionElement.isImplementation)); |
- graph.calledInLoop = closedWorld.isCalledInLoop(functionElement); |
+ graph.calledInLoop = |
+ closedWorld.isCalledInLoop(functionElement.declaration); |
ast.FunctionExpression function = resolvedAst.node; |
assert(function != null); |
assert(elements.getFunctionDefinition(function) != null); |