Index: pkg/compiler/lib/src/dump_info.dart |
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart |
index 54ca88ff770403ac4d4f8ea682f76d38934439dd..b60b5ab85ecc9c6bf14de01db2c60d6cc4bb0ae0 100644 |
--- a/pkg/compiler/lib/src/dump_info.dart |
+++ b/pkg/compiler/lib/src/dump_info.dart |
@@ -139,7 +139,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { |
_elementToInfo[element] = info; |
if (element.isConst) { |
var value = compiler.backend.constantCompilerTask |
- .getConstantValueForVariable(element); |
+ .getConstantValue(element.constant); |
if (value != null) { |
info.initializer = _constantToInfo[value]; |
} |