| Index: pkg/compiler/lib/src/ssa/builder.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
|
| index 368b6ef27e7155784e1ea5345453784bf479ae7a..a3d3a60b42b5366fcb6017895d90bf4117a723bc 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder.dart
|
| @@ -3149,7 +3149,8 @@ class SsaBuilder extends NewResolvedVisitor {
|
|
|
| // See if we can constant-fold right away. This avoids rewrites later on.
|
| if (operand is HConstant) {
|
| - UnaryOperation operation = constantSystem.lookupUnary(op.source);
|
| + UnaryOperation operation = constantSystem.lookupUnary(
|
| + UnaryOperator.parse(op.source));
|
| HConstant constant = operand;
|
| ConstantValue folded = operation.fold(constant.constant);
|
| if (folded != null) {
|
|
|