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

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

Issue 2472993002: Fix type conversion of malformed type (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/nodes.dart
diff --git a/pkg/compiler/lib/src/ssa/nodes.dart b/pkg/compiler/lib/src/ssa/nodes.dart
index c40c1584cd4fc3f9148762e87b714d6491938708..f2d1af7022316fca4b1200b6a19a841ebf8575d6 100644
--- a/pkg/compiler/lib/src/ssa/nodes.dart
+++ b/pkg/compiler/lib/src/ssa/nodes.dart
@@ -1374,9 +1374,8 @@ abstract class HInstruction implements Spannable {
assert(type.treatAsRaw || type.isFunctionType);
if (type.isDynamic) return this;
if (type.isObject) return this;
- // The type element is either a class or the void element.
JavaScriptBackend backend = compiler.backend;
- if (type.isVoid || type.isFunctionType) {
+ if (type.isVoid || type.isFunctionType || type.isMalformed) {
return new HTypeConversion(type, kind, backend.dynamicType, this);
}
assert(type.isInterfaceType);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698