| Index: runtime/vm/flow_graph_builder.cc
|
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
|
| index a55328f4b1eafdea19435c07acb2da82cf5e5878..0bcf854c0c61c29462883740a43dca33837e05be 100644
|
| --- a/runtime/vm/flow_graph_builder.cc
|
| +++ b/runtime/vm/flow_graph_builder.cc
|
| @@ -899,10 +899,13 @@ Definition* EffectGraphVisitor::BuildLoadLocal(const LocalVariable& local,
|
| context, Context::parent_offset(), Type::ZoneHandle(Z, Type::null()),
|
| token_pos));
|
| }
|
| - return new(Z) LoadFieldInstr(context,
|
| - Context::variable_offset(local.index()),
|
| - local.type(),
|
| - token_pos);
|
| + LoadFieldInstr* load = new(Z) LoadFieldInstr(
|
| + context,
|
| + Context::variable_offset(local.index()),
|
| + local.type(),
|
| + token_pos);
|
| + load->set_is_immutable(local.is_final());
|
| + return load;
|
| } else {
|
| return new(Z) LoadLocalInstr(local, token_pos);
|
| }
|
|
|