Commit 3b297f58f7

daurnimator <quae@daurnimator.com>
2019-09-09 16:09:08
src: use zig_panic rather than having LLVM abort
1 parent ff9f327
Changed files (1)
src/codegen.cpp
@@ -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) {