Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index 371ec0eb70658f932a35ce667691ce6841942e49..d9188c7e6c3f89ab3c2ef1bd248ff31bc8cbb0e8 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -3804,10 +3804,11 @@ void EffectGraphVisitor::VisitStoreInstanceFieldNode( |
void EffectGraphVisitor::VisitLoadStaticFieldNode(LoadStaticFieldNode* node) { |
if (node->field().is_const()) { |
- ASSERT(node->field().value() != Object::sentinel().raw()); |
- ASSERT(node->field().value() != Object::transition_sentinel().raw()); |
- Definition* result = |
- new(Z) ConstantInstr(Instance::ZoneHandle(Z, node->field().value())); |
+ ASSERT(node->field().StaticValue() != Object::sentinel().raw()); |
+ ASSERT(node->field().StaticValue() != |
+ Object::transition_sentinel().raw()); |
+ Definition* result = new(Z) ConstantInstr( |
+ Instance::ZoneHandle(Z, node->field().StaticValue())); |
return ReturnDefinition(result); |
} |
Value* field_value = Bind(new(Z) ConstantInstr(node->field())); |