Use correct size for stack slot in inline asm codegen
This commit is contained in:
parent
27e8329b20
commit
cdadd5f4cd
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue