Skip to content

Commit 3c533ce

Browse files
Rollup merge of rust-lang#156568 - SergioGasquez:fix/xtensa-vaarg-alg, r=folkertdev
Fix Xtensa vaarg stack transition algorithm Fixes Xtensa va arg stack transition algorithm
2 parents 8f02e85 + 41e1dc4 commit 3c533ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_codegen_llvm/src/va_arg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ fn emit_xtensa_va_arg<'ll, 'tcx>(
994994

995995
// let offset_next_corrected = offset_corrected + slot_size;
996996
// va_ndx = offset_next_corrected;
997-
let offset_next_corrected = bx.add(offset_next, bx.const_i32(slot_size));
997+
let offset_next_corrected = bx.add(offset_corrected, bx.const_i32(slot_size));
998998
// update va_ndx
999999
bx.store(offset_next_corrected, offset_ptr, ptr_align_abi);
10001000

0 commit comments

Comments
 (0)