From e575826c287f0dd0afeb1b9c6c8db45fb44c8d26 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 03:24:18 +0000 Subject: 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 / includes and turn always-true trailing operator tests in ArithmeticHandler into plain returns. Co-Authored-By: Claude Opus 5.5 --- lib/CodeGen/RuntimeCheck.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/CodeGen/RuntimeCheck.cc') 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 Fmt Builder.CreateCondBr(Condition, FailBB, ContBB); Builder.SetInsertPoint(FailBB); - std::vector PrintArgs; - PrintArgs.push_back(Msg); - PrintArgs.insert(PrintArgs.end(), FmtArgs.begin(), FmtArgs.end()); - emitStderr(Msg, ArrayRef(PrintArgs).drop_front()); + emitStderr(Msg, FmtArgs); Exceptions.emitThrow(); -- cgit v1.3.1-4-g156e