Index: pkg/compiler/lib/src/cps_ir/inline.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/inline.dart b/pkg/compiler/lib/src/cps_ir/inline.dart |
index 9454e38a336ad2616fae0db7dfec8bc7fbad0d5b..89af4dc50fc93c3d0b5bca24b9332565026afd7c 100644 |
--- a/pkg/compiler/lib/src/cps_ir/inline.dart |
+++ b/pkg/compiler/lib/src/cps_ir/inline.dart |
@@ -377,7 +377,7 @@ class InliningVisitor extends TrampolineRecursiveVisitor { |
++nameIndex; |
} else { |
Constant defaultValue = cps.makeConstant( |
- backend.constants.getConstantValueForVariable(formal)); |
+ backend.constants.getConstantValue(formal.constant)); |
defaultValue.type = typeSystem.getParameterType(formal); |
arguments.add(defaultValue); |
} |
@@ -391,7 +391,7 @@ class InliningVisitor extends TrampolineRecursiveVisitor { |
arguments.add(parameters[parameterIndex++]); |
} else { |
Constant defaultValue = cps.makeConstant( |
- backend.constants.getConstantValueForVariable(formal)); |
+ backend.constants.getConstantValue(formal.constant)); |
defaultValue.type = typeSystem.getParameterType(formal); |
arguments.add(defaultValue); |
} |