From b73caec3ced9e6588856f77f6a03319d3515f5ac Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 11 Dec 2011 13:38:56 -0800 Subject: [PATCH] rt: Call upcall_fail on the C stack --- src/rt/rust_upcall.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index ed010b24d418..811a6b36df0e 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 {