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

Unified Diff: sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart

Issue 373463002: dart2dart: Fixed assertions in IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: SVN merge Created 6 years, 5 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart b/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart
index 85122e519c1cfd4d7da430937293d28bcfe32da8..af26952365a39f9ea6259e826f21056c96e18258 100644
--- a/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart
@@ -1402,7 +1402,7 @@ class IrBuilder extends ResolvedVisitor<ir.Primitive> {
assignedVars[variableIndex[element]] = valueToStore;
} else if ((!node.isSuperCall && Elements.isErroneousElement(element)) ||
Elements.isStaticOrTopLevel(element)) {
- assert(element.isField || element.isSetter);
+ assert(element.isErroneous || element.isField || element.isSetter);
Selector selector = elements.getSelector(node);
continueWithExpression(
(k) => new ir.InvokeStatic(element, selector, k, [valueToStore]));
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698