diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-13 14:29:49 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-13 14:29:49 +0000 |
| commit | cdadd5f4cd12a273290202bc17121195e7ee96bc (patch) | |
| tree | ee4682236175673f5863e03540e6ca3ca3340a67 | |
| parent | 27e8329b2071e3be980c149c23bc15093681065d (diff) | |
| download | rust-cdadd5f4cd12a273290202bc17121195e7ee96bc.tar.gz rust-cdadd5f4cd12a273290202bc17121195e7ee96bc.zip | |
Use correct size for stack slot in inline asm codegen
| -rw-r--r-- | src/inline_asm.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inline_asm.rs b/src/inline_asm.rs index f2b0ec977c6..310b226814d 100644 --- a/src/inline_asm.rs +++ b/src/inline_asm.rs @@ -871,7 +871,8 @@ fn call_inline_asm<'tcx>( inputs: Vec<(Size, Value)>, outputs: Vec<(Size, CPlace<'tcx>)>, ) { - let stack_slot = fx.create_stack_slot(u32::try_from(slot_size.bytes()).unwrap(), 16); + let stack_slot = + fx.create_stack_slot(u32::try_from(slot_size.bytes().next_multiple_of(16)).unwrap(), 16); let inline_asm_func = fx .module |
