Index: pkg/compiler/lib/src/patch_parser.dart |
diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart |
index 50be043289e54f246e890c726d9bbc19780d849f..f0ba4fc0272a34ddae1718154dc487390591050d 100644 |
--- a/pkg/compiler/lib/src/patch_parser.dart |
+++ b/pkg/compiler/lib/src/patch_parser.dart |
@@ -411,7 +411,7 @@ class PatchAnnotationHandler extends EagerAnnotationHandler<PatchVersion> { |
ResolutionDartType annotationType = |
constant.getType(compiler.commonElements); |
if (annotationType.element != |
- compiler.backend.helpers.patchAnnotationClass) { |
+ compiler.commonElements.patchAnnotationClass) { |
DiagnosticReporter reporter = compiler.reporter; |
reporter.internalError(annotation, 'Invalid patch annotation.'); |
} |