aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGen.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-15 02:41:11 +0000
committer_ov4 <ov4@ov4.org>2026-10-15 02:41:11 +0000
commitc4565386553ea86308a9487650d2435804893ed0 (patch)
treeeae3556d3a1e05b3f91b13b218cab3a72eb3bbef /lib/CodeGen/CodeGen.cc
parentab86ae0284469a9a941f5b196f9cc99a90305e3a (diff)
fix(codegen): restore runtime diagnostics before throwing
Reuse historical runtime messages and source-line reporting for arithmetic, array, enum, pointer and file checks while preserving anonymous exceptions. Update the manuals and subsystem guidance to describe diagnostic output. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/CodeGen.cc')
-rw-r--r--lib/CodeGen/CodeGen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGen.cc b/lib/CodeGen/CodeGen.cc
index b86a0ae..7e463db 100644
--- a/lib/CodeGen/CodeGen.cc
+++ b/lib/CodeGen/CodeGen.cc
@@ -71,7 +71,7 @@ CodeGen::CodeGen() {
Types = std::make_unique<TypeSystem>(*TheContext);
Exceptions = std::make_unique<ExceptionHandler>(*TheContext, *Builder, *TheModule);
- RuntimeChecker = std::make_unique<RuntimeCheck>(*TheContext, *Builder, *Exceptions);
+ RuntimeChecker = std::make_unique<RuntimeCheck>(*TheModule, *TheContext, *Builder, *Exceptions);
Arrays = std::make_unique<ArrayHandler>(*TheContext,
*Builder,