aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RuntimeCheck.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-22 03:24:18 +0000
committer_ov4 <ov4@ov4.org>2026-10-22 03:58:36 +0000
commite575826c287f0dd0afeb1b9c6c8db45fb44c8d26 (patch)
treecda407c503473817670188e02cc77d7f7a8331e9 /lib/CodeGen/RuntimeCheck.cc
parentf58bbaa006cb0bb29739a168ed39286f6db0a8b4 (diff)
refactor(codegen): remove dead code in type system and runtime checks
Drop the unused TypeInfo::isNumeric, pass emitCheck's format arguments straight to emitStderr, remove unused <cctype>/<cstdio> includes and turn always-true trailing operator tests in ArithmeticHandler into plain returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/RuntimeCheck.cc')
-rw-r--r--lib/CodeGen/RuntimeCheck.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/RuntimeCheck.cc b/lib/CodeGen/RuntimeCheck.cc
index 4cee16f..e15c10b 100644
--- a/lib/CodeGen/RuntimeCheck.cc
+++ b/lib/CodeGen/RuntimeCheck.cc
@@ -77,10 +77,7 @@ void RuntimeCheck::emitCheck(Value *Condition, Value *Msg, ArrayRef<Value *> Fmt
Builder.CreateCondBr(Condition, FailBB, ContBB);
Builder.SetInsertPoint(FailBB);
- std::vector<Value*> PrintArgs;
- PrintArgs.push_back(Msg);
- PrintArgs.insert(PrintArgs.end(), FmtArgs.begin(), FmtArgs.end());
- emitStderr(Msg, ArrayRef<Value *>(PrintArgs).drop_front());
+ emitStderr(Msg, FmtArgs);
Exceptions.emitThrow();