authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2019-09-10 00:09:08+10:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-19 11:51:39-04:00
log3b297f58f70c72fb57cdc46a681db4e99abd34b5
tree7a1af2a368b10a363ab05830865b1877f0115907
parentff9f3275dede031cdbea67272f648bb91c79c574

src: use zig_panic rather than having LLVM abort


1 files changed, 3 insertions(+), 1 deletions(-)

src/codegen.cpp+3-1
...@@ -7526,7 +7526,9 @@ static void do_code_gen(CodeGen *g) {...@@ -7526,7 +7526,9 @@ static void do_code_gen(CodeGen *g) {
7526 }7526 }
75277527
7528 char *error = nullptr;7528 char *error = nullptr;
7529 LLVMVerifyModule(g->module, LLVMAbortProcessAction, &error);7529 if (LLVMVerifyModule(g->module, LLVMReturnStatusAction, &error)) {
7530 zig_panic("broken LLVM module found: %s", error);
7531 }
7530}7532}
75317533
7532static void zig_llvm_emit_output(CodeGen *g) {7534static void zig_llvm_emit_output(CodeGen *g) {