This commit is contained in:
Chris Fallin 2022-11-29 22:37:35 -08:00
parent 50b83525e1
commit 52db5b4a4e
No known key found for this signature in database
GPG key ID: 31649E4FE65EB465

View file

@ -387,6 +387,8 @@ impl LocalTracker {
self.cur_block, self.cur_block,
old_mapping old_mapping
); );
} else {
self.block_end.insert(self.cur_block, FxHashMap::default());
} }
} }
@ -413,7 +415,12 @@ impl LocalTracker {
} }
fn get_in_block(&mut self, body: &mut FunctionBody, at_block: Block, local: Local) -> Value { fn get_in_block(&mut self, body: &mut FunctionBody, at_block: Block, local: Local) -> Value {
log::trace!("get_in_block: at_block {} local {}", at_block, local); log::trace!(
"get_in_block: at_block {} local {} cur_block {}",
at_block,
local,
self.cur_block
);
let ty = body.locals[local]; let ty = body.locals[local];
if self.cur_block == at_block { if self.cur_block == at_block {