diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-13 08:43:17 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-13 08:43:17 +0000 |
| commit | c6dbd14ec8ff94df47d3c2137cc5234203ec5e0c (patch) | |
| tree | 6e07a8384d28c9a92ca56e9cb2dca2017b1817cb /lib/CodeGen/CodeGen.cc | |
| parent | 56f17f199ee2bc0a77e090c43dd367f43c909f2c (diff) | |
fix: check division and modulo for zero divisors
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 a6669a6..d5942e9 100644 --- a/lib/CodeGen/CodeGen.cc +++ b/lib/CodeGen/CodeGen.cc @@ -85,7 +85,8 @@ CodeGen::CodeGen() { Symbols, HadError); - ArithHandler = std::make_unique<ArithmeticHandler>(*TheContext, *Builder, HadError); + ArithHandler = std::make_unique<ArithmeticHandler>(*TheContext, *Builder, HadError, + *RuntimeChecker); StrHandler = std::make_unique<StringHandler>(*TheContext, *Builder, *TheModule); StrConvHandler = std::make_unique<StringConversionHandler>(*TheContext, *Builder, *TheModule); Files = std::make_unique<FileHandler>(*TheContext, *Builder, *TheModule, *RuntimeChecker); |
