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 2fee721a2145bd301e1c5ea20e5da3f133d8929d..e2d01e80538eb50feba01311f87d536536a13894 100644 |
--- a/pkg/compiler/lib/src/ssa/builder.dart |
+++ b/pkg/compiler/lib/src/ssa/builder.dart |
@@ -408,7 +408,7 @@ class SsaBuilder extends ast.Visitor |
List<HInstruction> providedArguments, ast.Node currentNode, |
{InterfaceType instanceType}) { |
registry |
- .addImpact(backend.registerStaticUse(element, forResolution: false)); |
+ .addImpact(backend.registerUsedElement(element, forResolution: false)); |
if (backend.isJsInterop(element) && !element.isFactoryConstructor) { |
// We only inline factory JavaScript interop constructors. |