Fix typo in x86 backend glue that was, by luck, only crashing on OSX.

This commit is contained in:
Graydon Hoare 2010-11-15 12:45:26 -08:00
parent a352efadad
commit 44b051f34a

View File

@ -49,7 +49,7 @@ fn rust_activate_glue() -> vec[str] {
// This 'add' instruction is a bit surprising.
// See lengthy comment in boot/be/x86.ml activate_glue.
+ vec("addl $20, " + wstr(abi.task_field_rust_sp) + "(%edx)")
+ vec("addl $20, " + wstr(abi.task_field_rust_sp) + "(%ecx)")
+ restore_callee_saves()
+ vec("ret");