| Index: lib/compiler/implementation/ssa/nodes.dart
|
| diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
|
| index b897f36a4d48e2caa5266acea39f39f433674b7b..72a45cff490db01565a579fda54ec975147da069 100644
|
| --- a/lib/compiler/implementation/ssa/nodes.dart
|
| +++ b/lib/compiler/implementation/ssa/nodes.dart
|
| @@ -739,7 +739,7 @@ class HBasicBlock extends HInstructionList implements Hashable {
|
| }
|
|
|
|
|
| -class HInstruction implements Hashable {
|
| +class HInstruction implements Hashable, Spannable {
|
| Element sourceElement;
|
| SourceFileLocation sourcePosition;
|
|
|
| @@ -2367,7 +2367,10 @@ class HThrow extends HControlFlow {
|
|
|
| class HStatic extends HInstruction {
|
| final Element element;
|
| - HStatic(this.element) : super(<HInstruction>[]) { assert(element !== null); }
|
| + HStatic(this.element) : super(<HInstruction>[]) {
|
| + assert(element !== null);
|
| + assert(invariant(this, element.isDeclaration));
|
| + }
|
|
|
| void prepareGvn(HTypeMap types) {
|
| if (!element.isAssignable()) {
|
|
|