Index: sdk/lib/_internal/compiler/implementation/deferred_load.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/deferred_load.dart b/sdk/lib/_internal/compiler/implementation/deferred_load.dart |
index 727579523f55f16480862b500015324ef2efabf0..bde0a69525add48faf92cfe44384373207c1aae6 100644 |
--- a/sdk/lib/_internal/compiler/implementation/deferred_load.dart |
+++ b/sdk/lib/_internal/compiler/implementation/deferred_load.dart |
@@ -471,7 +471,7 @@ class DeferredLoadTask extends CompilerTask { |
// asked isNeededForReflection. Instead an internal error is triggered. |
// So we have to filter them out here. |
if (element is AnalyzableElementX && !element.hasTreeElements) return; |
- if (compiler.backend.isNeededForReflection(element)) { |
+ if (compiler.backend.isAccessibleByReflection(element)) { |
_mapDependencies(element, deferredImport, isMirrorUsage: true); |
} |
} |