Skip to content

Commit

Permalink
Resolve aliases before inserting values into the live set
Browse files Browse the repository at this point in the history
This fixes a fuzz bug found in the development of
bytecodealliance#8941
  • Loading branch information
fitzgen committed Jul 12, 2024
1 parent d53969f commit f87db3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cranelift/frontend/src/frontend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ impl<'a> FunctionBuilder<'a> {
// instruction to the live set. This includes branch arguments,
// as mentioned above.
for val in self.func.dfg.inst_values(inst) {
let val = self.func.dfg.resolve_aliases(val);
if self.func_ctx.stack_map_values.contains(val) {
live.insert(val);
}
Expand Down

0 comments on commit f87db3d

Please sign in to comment.