src: use zig_panic rather than having LLVM abort

This commit is contained in:
daurnimator 2019-09-10 00:09:08 +10:00 committed by Andrew Kelley
parent ff9f3275de
commit 3b297f58f7

View File

@ -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) {