about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-11 13:38:56 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-11 14:35:18 -0800
commitb73caec3ced9e6588856f77f6a03319d3515f5ac (patch)
tree1ef18180e517ec9fead7e8257ae2854f7ce99f07 /src/rt/rust_upcall.cpp
parent5cd08586f6007325b50b697ce2ae175810637b0f (diff)
downloadrust-b73caec3ced9e6588856f77f6a03319d3515f5ac.tar.gz
rust-b73caec3ced9e6588856f77f6a03319d3515f5ac.zip
rt: Call upcall_fail on the C stack
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index ed010b24d41..811a6b36df0 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -63,10 +63,8 @@ extern "C" CDECL void
 upcall_fail(char const *expr,
             char const *file,
             size_t line) {
-    // FIXME: Need to fix the stack switching function to unwind properly
-    // in order to switch stacks here
     s_fail_args args = {expr,file,line};
-    upcall_s_fail(&args);
+    SWITCH_STACK(&args, upcall_s_fail);
 }
 
 struct s_malloc_args {