Analogous bugfix at another site.
This commit is contained in:
parent
7da027a51d
commit
50b83525e1
|
@ -460,10 +460,14 @@ impl LocalTracker {
|
||||||
|
|
||||||
let placeholder = body.add_placeholder(ty);
|
let placeholder = body.add_placeholder(ty);
|
||||||
body.mark_value_as_local(placeholder, local);
|
body.mark_value_as_local(placeholder, local);
|
||||||
|
if at_block == self.cur_block {
|
||||||
|
self.in_cur_block.insert(local, placeholder);
|
||||||
|
} else {
|
||||||
self.block_end
|
self.block_end
|
||||||
.entry(at_block)
|
.get_mut(&at_block)
|
||||||
.or_insert_with(|| FxHashMap::default())
|
.unwrap()
|
||||||
.insert(local, placeholder);
|
.insert(local, placeholder);
|
||||||
|
}
|
||||||
log::trace!(
|
log::trace!(
|
||||||
" -> created placeholder and added as incomplete phi: {:?}",
|
" -> created placeholder and added as incomplete phi: {:?}",
|
||||||
placeholder
|
placeholder
|
||||||
|
|
Loading…
Reference in a new issue