| 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 ed3f955029af06ed4b231aff33c6ccc041416309..55b888aea8ac83aaae68dcbab4fea11bf0d5dd2e 100644
|
| --- a/pkg/compiler/lib/src/ssa/nodes.dart
|
| +++ b/pkg/compiler/lib/src/ssa/nodes.dart
|
| @@ -174,6 +174,9 @@ class HGraph {
|
|
|
| HConstant addConstant(ConstantValue constant, Compiler compiler,
|
| {SourceInformation sourceInformation}) {
|
| + if (!constant.isConstant) {
|
| + constant = compiler.backend.constantSystem.createNull();
|
| + }
|
| HConstant result = constants[constant];
|
| // TODO(johnniwinther): Support source information per constant reference.
|
| if (result == null) {
|
|
|