diff options
Diffstat (limited to 'src/mir/mir_builder.cpp')
-rw-r--r-- | src/mir/mir_builder.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mir/mir_builder.cpp b/src/mir/mir_builder.cpp index a3c74ea9..d1a44816 100644 --- a/src/mir/mir_builder.cpp +++ b/src/mir/mir_builder.cpp @@ -921,6 +921,16 @@ void MirBuilder::complete_scope(ScopeDef& sd) auto& vs = get_variable_state_mut(sd.span, ent.first); if( vs != ent.second ) { + DEBUG(::MIR::LValue::make_Variable(ent.first) << " " << vs << " => " << ent.second); + vs = ::std::move(ent.second); + } + } + for(auto& ent : e.end_state.tmp_states) + { + auto& vs = get_temp_state_mut(sd.span, ent.first); + if( vs != ent.second ) + { + DEBUG(::MIR::LValue::make_Temporary({ent.first}) << " " << vs << " => " << ent.second); vs = ::std::move(ent.second); } } |