Skip to content

Commit

Permalink
Fix corrupted X29 causing segfault, thanks Alan!
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb authored and k0kubun committed Aug 29, 2022
1 parent 85872ee commit 8605efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yjit/src/backend/arm64/mod.rs
Expand Up @@ -633,8 +633,8 @@ impl Assembler
if b_offset_fits_bits(offset) {
b(cb, A64Opnd::new_imm(offset / 4));
} else {
emit_load_value(cb, X29, dst_addr as u64);
br(cb, X29);
emit_load_value(cb, Self::SCRATCH0, dst_addr as u64);
br(cb, Self::SCRATCH0);
}
},
Target::Label(label_idx) => {
Expand Down

0 comments on commit 8605efd

Please sign in to comment.