aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-20 15:29:13 -0700
committerGraydon Hoare <[email protected]>2010-07-20 15:29:13 -0700
commitcb989a816d22e9a1016d1c33c85ff44aca933d28 (patch)
treeb0e75177aa385f1f00c757f865e1e82a0f11cb96 /src
parentAdjust llasm, llabi to be aware of changes to rust_task structure. Still not ... (diff)
downloadrust-cb989a816d22e9a1016d1c33c85ff44aca933d28.tar.xz
rust-cb989a816d22e9a1016d1c33c85ff44aca933d28.zip
Pick off the last LLVM-crasher from mbx's change.
Diffstat (limited to 'src')
-rw-r--r--src/boot/llvm/llasm.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/boot/llvm/llasm.ml b/src/boot/llvm/llasm.ml
index 5b66989d..071e0bd6 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"]));