Commit 0b63573674

Vexu <15308111+Vexu@users.noreply.github.com>
2019-11-19 12:18:08
improve broken llvm module error message
1 parent 0e8a535
Changed files (1)
src/codegen.cpp
@@ -7725,7 +7725,7 @@ static void do_code_gen(CodeGen *g) {
 
     char *error = nullptr;
     if (LLVMVerifyModule(g->module, LLVMReturnStatusAction, &error)) {
-        zig_panic("broken LLVM module found: %s", error);
+        zig_panic("broken LLVM module found: %s\nThis is a bug in the Zig compiler.", error);
     }
 }