aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ArithmeticHandler.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-13 12:32:03 +0000
committer_ov4 <ov4@ov4.org>2026-10-13 12:32:03 +0000
commit17cec530b0a4d792bde2d37583b6c26e89f9b1bd (patch)
tree6b67f23d68ccf21dd6052f858037be7b49244c4c /lib/CodeGen/ArithmeticHandler.cc
parent42acac3dac5b8ff5aec4ff204d2c1da948ea34b0 (diff)
fix: distinguish compiler errors and report compilation termination
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/ArithmeticHandler.cc')
-rw-r--r--lib/CodeGen/ArithmeticHandler.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/ArithmeticHandler.cc b/lib/CodeGen/ArithmeticHandler.cc
index b7f0665..cd4e7b3 100644
--- a/lib/CodeGen/ArithmeticHandler.cc
+++ b/lib/CodeGen/ArithmeticHandler.cc
@@ -28,7 +28,7 @@ Value *ArithmeticHandler::emitBinaryOp(int Op, Value *LHS, Value *RHS, int Line)
if (LVal->getType()->isIntegerTy(64)) LVal = Builder.CreateSIToFP(LVal, Type::getDoubleTy(Context));
if (RVal->getType()->isIntegerTy(64)) RVal = Builder.CreateSIToFP(RVal, Type::getDoubleTy(Context));
if (!LVal->getType()->isDoubleTy() || !RVal->getType()->isDoubleTy()) {
- fprintf(stderr, "Error: '/' requires numeric operands (line %d).\n", Line);
+ fprintf(stderr, "error: '/' requires numeric operands (line %d).\n", Line);
HadError = true;
return nullptr;
}
@@ -39,7 +39,7 @@ Value *ArithmeticHandler::emitBinaryOp(int Op, Value *LHS, Value *RHS, int Line)
if (Op == tok_div || Op == tok_mod) {
if (!LIsInt || !RIsInt) {
- fprintf(stderr, "Error: DIV and MOD operators require INTEGER operands (line %d).\n", Line);
+ fprintf(stderr, "error: DIV and MOD operators require INTEGER operands (line %d).\n", Line);
HadError = true;
return nullptr;
}
@@ -96,7 +96,7 @@ Value *ArithmeticHandler::emitBinaryOp(int Op, Value *LHS, Value *RHS, int Line)
R = widenSmallInt(Builder, Context, R);
}
if (L->getType() != R->getType()) {
- fprintf(stderr, "Error: Mismatched operand types for binary operator (line %d).\n", Line);
+ fprintf(stderr, "error: Mismatched operand types for binary operator (line %d).\n", Line);
HadError = true;
return nullptr;
}
@@ -114,7 +114,7 @@ Value *ArithmeticHandler::emitBinaryOp(int Op, Value *LHS, Value *RHS, int Line)
}
}
- fprintf(stderr, "Error: Unsupported operand types for binary operator (line %d).\n", Line);
+ fprintf(stderr, "error: Unsupported operand types for binary operator (line %d).\n", Line);
HadError = true;
return nullptr;
}