Index: pkg/compiler/lib/src/kernel/task.dart |
diff --git a/pkg/compiler/lib/src/kernel/task.dart b/pkg/compiler/lib/src/kernel/task.dart |
index 6b140df199f848449eba33cec0a0234cfc8060c8..9ad80ec4d78261b8767843fda7f574e3944fbae0 100644 |
--- a/pkg/compiler/lib/src/kernel/task.dart |
+++ b/pkg/compiler/lib/src/kernel/task.dart |
@@ -39,7 +39,7 @@ class KernelTask extends CompilerTask { |
ir.Program buildProgram(LibraryElement library) { |
var main = library.findExported(Identifiers.main); |
if (main == null) { |
- main = _compiler.backend.helperForMissingMain(); |
+ main = _compiler.frontendStrategy.commonElements.missingMain; |
} |
return new ir.Program( |
libraries: kernel.libraryDependencies(library.canonicalUri)) |