diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-13 12:32:03 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-13 12:32:03 +0000 |
| commit | 17cec530b0a4d792bde2d37583b6c26e89f9b1bd (patch) | |
| tree | 6b67f23d68ccf21dd6052f858037be7b49244c4c /lib/CodeGen/CodeGen.cc | |
| parent | 42acac3dac5b8ff5aec4ff204d2c1da948ea34b0 (diff) | |
fix: distinguish compiler errors and report compilation termination
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/CodeGen.cc')
| -rw-r--r-- | lib/CodeGen/CodeGen.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGen.cc b/lib/CodeGen/CodeGen.cc index c0da7ee..f12c6ce 100644 --- a/lib/CodeGen/CodeGen.cc +++ b/lib/CodeGen/CodeGen.cc @@ -56,7 +56,7 @@ bool CodeGen::isBuiltinName(const std::string &Name) { void CodeGen::reportError(const char *Fmt, ...) { va_list Args; va_start(Args, Fmt); - fprintf(stderr, "Error: "); + fprintf(stderr, "error: "); vfprintf(stderr, Fmt, Args); fprintf(stderr, "\n"); va_end(Args); @@ -536,6 +536,7 @@ void CodeGen::compile(const std::vector<std::unique_ptr<StmtAST>> &Statements) { } if (verifyModule(*TheModule, &errs())) { + errs() << "fatal error: LLVM module verification failed\n"; HadError = true; } } |
