Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
index bc77a985332ef3421e4090d0b6530d65b3de0271..49d3353c24f60c65fe9d1d3d95b8fa79575096c2 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
@@ -1681,7 +1681,7 @@ class IrBuilderVisitor extends ast.Visitor<ir.Primitive> |
} |
ConstantValue getConstantForVariable(VariableElement element) { |
- return irBuilder.state.constants.getConstantValueForVariable(element); |
+ return irBuilder.state.constants.getConstantValue(element.constant); |
} |
ir.Primitive buildConstantExpression( |