mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 03:25:01 +00:00
src: use zig_panic rather than having LLVM abort
This commit is contained in:
parent
ff9f3275de
commit
3b297f58f7
@ -7526,7 +7526,9 @@ static void do_code_gen(CodeGen *g) {
|
||||
}
|
||||
|
||||
char *error = nullptr;
|
||||
LLVMVerifyModule(g->module, LLVMAbortProcessAction, &error);
|
||||
if (LLVMVerifyModule(g->module, LLVMReturnStatusAction, &error)) {
|
||||
zig_panic("broken LLVM module found: %s", error);
|
||||
}
|
||||
}
|
||||
|
||||
static void zig_llvm_emit_output(CodeGen *g) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user