Skip to content

Commit b73caec

Browse files
committed
rt: Call upcall_fail on the C stack
1 parent 5cd0858 commit b73caec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rt/rust_upcall.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ extern "C" CDECL void
6363
upcall_fail(char const *expr,
6464
char const *file,
6565
size_t line) {
66-
// FIXME: Need to fix the stack switching function to unwind properly
67-
// in order to switch stacks here
6866
s_fail_args args = {expr,file,line};
69-
upcall_s_fail(&args);
67+
SWITCH_STACK(&args, upcall_s_fail);
7068
}
7169

7270
struct s_malloc_args {

0 commit comments

Comments
 (0)