Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: pkg/compiler/lib/src/ssa/codegen.dart

Issue 1402913003: Avoid creating invalid TypeMask.nonNullExact (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/ssa/codegen.dart
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart
index 22bd55d35cae352b1a967aa989d96eb589fce3e2..82fb689437c03ed938b0d40544c851be197a2cd2 100644
--- a/pkg/compiler/lib/src/ssa/codegen.dart
+++ b/pkg/compiler/lib/src/ssa/codegen.dart
@@ -1756,7 +1756,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
// [world]. The emitter needs to know if it needs to emit a
// bound closure for a method.
TypeMask receiverType =
- new TypeMask.nonNullExact(superClass, compiler.world);
+ new TypeMask.nonNullExact(node.caller.superclass, compiler.world);
Johnni Winther 2015/10/13 10:14:55 superMethod is mixed in [superClass] might not be
floitsch 2015/10/13 12:15:42 add comment.
Johnni Winther 2015/10/13 13:06:37 Done.
// TODO(floitsch): we know the target. We shouldn't register a
// dynamic getter.
registry.registerDynamicGetter(

Powered by Google App Engine
This is Rietveld 408576698