about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index bed4e57b194..7080d6f386d 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -290,8 +290,6 @@ rust_task::start_rustc(uintptr_t exit_task_glue,
     *spp-- = (uintptr_t) 0x0;        // output
     *spp-- = (uintptr_t) 0x0;        // retpc
 
-    uintptr_t exit_task_frame_base = 0;
-
     I(dom, args);
     make_aligned_room_for_bytes(spp, callsz - 3 * sizeof(uintptr_t));
 
@@ -325,11 +323,7 @@ rust_task::start_rustc(uintptr_t exit_task_glue,
     // The context the activate_glue needs to switch stack.
     *spp-- = (uintptr_t) spawnee_fn;      // instruction to start at
     for (size_t j = 0; j < n_callee_saves; ++j) {
-        // callee-saves to carry in when we activate
-        if (j == callee_save_fp)
-            *spp-- = exit_task_frame_base;
-        else
-            *spp-- = (uintptr_t)NULL;
+        *spp-- = (uintptr_t)NULL;
     }
 
     // Back up one, we overshot where sp should be.