aboutsummaryrefslogtreecommitdiff
path: root/src/comp/back
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/back')
-rw-r--r--src/comp/back/x86.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs
index a2a8d5cc..94243c36 100644
--- a/src/comp/back/x86.rs
+++ b/src/comp/back/x86.rs
@@ -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");