From 8c2a2b8f9b3f495f329b2ca3c2759e076f9554fd Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 03:26:30 +0000 Subject: refactor(codegen): remove dead parameters, fields and branches Drop the never-read StackObject::IsCopy flag and registerStackObject parameter, the unused NewExprAST forward declaration, the unused Ret parameter of FunctionGen::emitReturn and CG parameter of ArrayHandler::loadElement, unused includes, and the coerceValueToType early returns already covered by the exact LLVM type check (builtin kinds always map to double/i64/i1/i8). Co-Authored-By: Claude Opus 5.5 --- lib/CodeGen/FunctionGen.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/FunctionGen.cc') diff --git a/lib/CodeGen/FunctionGen.cc b/lib/CodeGen/FunctionGen.cc index 628f3ba..9c9d0f5 100644 --- a/lib/CodeGen/FunctionGen.cc +++ b/lib/CodeGen/FunctionGen.cc @@ -3,7 +3,6 @@ #include "cps/CodeGen.h" #include "cps/ExceptionHandler.h" #include "cps/Operator.h" -#include #include using namespace llvm; @@ -472,7 +471,7 @@ llvm::Value *FunctionGen::emitCall(const FuncSig &Sig, const std::vector