diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 03:24:18 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 03:58:36 +0000 |
| commit | e575826c287f0dd0afeb1b9c6c8db45fb44c8d26 (patch) | |
| tree | cda407c503473817670188e02cc77d7f7a8331e9 /lib/CodeGen/RuntimeCheck.cc | |
| parent | f58bbaa006cb0bb29739a168ed39286f6db0a8b4 (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.cc | 5 |
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(); |
