Index: pkg/compiler/lib/src/ssa/optimize.dart |
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart |
index e8c546a42b03ff4ec80de283618a7b05b856c8df..fb5f1963b454a5b6bf56af83c6b5c41e84af449a 100644 |
--- a/pkg/compiler/lib/src/ssa/optimize.dart |
+++ b/pkg/compiler/lib/src/ssa/optimize.dart |
@@ -449,10 +449,10 @@ class SsaInstructionSimplifier extends HBaseVisitor |
// TODO(ngeoffray): Also fold if it's a getter or variable. |
if (element != null && |
element.isFunction |
- // If we found out that the only target is a [:noSuchMethod:], |
- // we just ignore it. |
+ // If we found out that the only target is an implicitly called |
+ // [:noSuchMethod:] we just ignore it. |
&& |
- element.name == node.selector.name) { |
+ node.selector.applies(element)) { |
FunctionElement method = element; |
if (backend.isNative(method)) { |