Index: runtime/vm/kernel_to_il.cc |
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc |
index 65fd9f49c09f982e7037272d2ae471a3d3fd18b2..6f1a8c1ee5fc82871475740901170359076dce3c 100644 |
--- a/runtime/vm/kernel_to_il.cc |
+++ b/runtime/vm/kernel_to_il.cc |
@@ -2688,7 +2688,7 @@ Fragment FlowGraphBuilder::StoreInstanceFieldGuarded( |
bool is_initialization_store) { |
Fragment instructions; |
const dart::Field& field_clone = MayCloneField(Z, field); |
- if (FLAG_use_field_guards) { |
+ if (I->use_field_guards()) { |
LocalVariable* store_expression = MakeTemporary(); |
instructions += LoadLocal(store_expression); |
instructions += GuardFieldClass(field_clone, H.thread()->GetNextDeoptId()); |