improve broken llvm module error message

This commit is contained in:
Vexu 2019-11-19 13:18:08 +02:00 committed by Andrew Kelley
parent 0e8a53514e
commit 0b63573674
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -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);
}
}