diff --git a/src/boot/llvm/llasm.ml b/src/boot/llvm/llasm.ml index 5b66989d178..071e0bd655e 100644 --- a/src/boot/llvm/llasm.ml +++ b/src/boot/llvm/llasm.ml @@ -73,7 +73,10 @@ let x86_glue * This 'add' instruction is a bit surprising. * See lengthy comment in boot/be/x86.ml activate_glue. *) - @ ["addl $20, 12(%edx)"] + @ [ Printf.sprintf + "addl $20, %d(%%edx)" + (Abi.task_field_rust_sp * 4) ] + @ restore_callee_saves @ ["ret"]));