Index: runtime/vm/kernel_to_il.cc |
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc |
index 984de1d4aeabf6f9dda81ac56c48f9fd6ca966c9..514de966c958976fb2eea6fce5f2f7934c46d7f7 100644 |
--- a/runtime/vm/kernel_to_il.cc |
+++ b/runtime/vm/kernel_to_il.cc |
@@ -4496,7 +4496,7 @@ void FlowGraphBuilder::VisitStaticGet(StaticGet* node) { |
Field* kernel_field = Field::Cast(target); |
const dart::Field& field = |
dart::Field::ZoneHandle(Z, H.LookupFieldByKernelField(kernel_field)); |
- if (kernel_field->IsConst()) { |
+ if (field.is_const()) { |
fragment_ = Constant(constant_evaluator_.EvaluateExpression(node)); |
} else { |
const dart::Class& owner = dart::Class::Handle(Z, field.Owner()); |