release builds of stage1 have llvm ir verification

the stage2 zig code however gets compiled in release mode,
and stripped.
This commit is contained in:
Andrew Kelley
2019-09-09 09:33:33 -04:00
parent 19cf9bd062
commit 2482bdf22b
3 changed files with 12 additions and 4 deletions

View File

@@ -7381,10 +7381,8 @@ static void do_code_gen(CodeGen *g) {
LLVMDumpModule(g->module);
}
#ifndef NDEBUG
char *error = nullptr;
LLVMVerifyModule(g->module, LLVMAbortProcessAction, &error);
#endif
}
static void zig_llvm_emit_output(CodeGen *g) {