aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorVexu <15308111+Vexu@users.noreply.github.com>2019-11-19 13:18:08 +0200
committerAndrew Kelley <andrew@ziglang.org>2019-11-21 23:21:14 -0500
commit0b63573674c76bd45f641774c16e0d4e96ee74fd (patch)
tree8212a8e6083525e7e5adcfc1ec9800d90da10f88 /src/codegen.cpp
parent0e8a53514ebf5db00435b38c851f5fdc37ed4aa1 (diff)
downloadzig-0b63573674c76bd45f641774c16e0d4e96ee74fd.tar.gz
zig-0b63573674c76bd45f641774c16e0d4e96ee74fd.zip
improve broken llvm module error message
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index a288f397fd..f90777c983 100644
--- a/src/codegen.cpp
+++ b/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);
}
}