about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-08 17:55:36 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-09 19:00:15 -0800
commit889a78349426f28d1db508729e1091bad7cf46ea (patch)
tree53886eeb9e9991c8e5b77fd7732d3c369edd4e7d /src/rt/rust_task.cpp
parentd39ea4774614f1db3366184f1e6ce30b7614d9ff (diff)
downloadrust-889a78349426f28d1db508729e1091bad7cf46ea.tar.gz
rust-889a78349426f28d1db508729e1091bad7cf46ea.zip
rt: Remove rust_task::rust_sp
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index d2ebac63793..e5c20789760 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -219,7 +219,6 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_list *state,
     DLOG(thread, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this);
 
     stk = new_stk(thread, this, init_stack_sz);
-    rust_sp = stk->end;
     if (supervisor) {
         supervisor->ref();
     }
@@ -336,7 +335,7 @@ rust_task::start(spawn_fn spawnee_fn,
 
     I(thread, stk->data != NULL);
 
-    char *sp = (char *)rust_sp;
+    char *sp = (char *)stk->end;
 
     sp -= sizeof(spawn_args);