Skip to content

Commit

Permalink
Experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Nov 13, 2023
1 parent cc1cff8 commit 9c63326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/llvm_codegen_function.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ void llvm_emit_body(GenContext *c, LLVMValueRef function, FunctionPrototype *pro
llvm_emit_stacktrace_definitions(c);
c->builder = prev_builder;
}
else if (c->debug.enable_stacktrace)
else if (c->debug.enable_stacktrace && !c->debug.stack_init_fn)
{
const char *name = ".stacktrace_current";
LLVMValueRef current_stack = c->debug.current_stack_ptr = llvm_add_global_raw(c, name, c->ptr_type, 0);
Expand Down

0 comments on commit 9c63326

Please sign in to comment.