Index: pkg/compiler/lib/src/common/codegen.dart |
diff --git a/pkg/compiler/lib/src/common/codegen.dart b/pkg/compiler/lib/src/common/codegen.dart |
index 9216f9d740bf7ba3e4a6df786e3e089418b707d6..208d40feea3e2afb81319a43c37273d0f63bf3d2 100644 |
--- a/pkg/compiler/lib/src/common/codegen.dart |
+++ b/pkg/compiler/lib/src/common/codegen.dart |
@@ -146,8 +146,8 @@ class CodegenRegistry { |
worldImpact.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); |
} |
- void registerInstantiatedClosure(Local element) { |
- worldImpact.registerStaticUse(new StaticUse.closure(element)); |
+ void registerInstantiatedClosure(FunctionEntity element) { |
+ worldImpact.registerStaticUse(new StaticUse.callMethod(element)); |
} |
void registerConstSymbol(String name) { |