diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 03:26:30 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 03:58:26 +0000 |
| commit | 8c2a2b8f9b3f495f329b2ca3c2759e076f9554fd (patch) | |
| tree | 2c86d86d7eb0acba30ec9105f6aa7ac506759ead /lib/CodeGen/OperatorGen.cc | |
| parent | c062fc71f400df8acc14d06819370229af7e5d54 (diff) | |
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 <cstdio> 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 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/OperatorGen.cc')
| -rw-r--r-- | lib/CodeGen/OperatorGen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/OperatorGen.cc b/lib/CodeGen/OperatorGen.cc index 67fd1e4..0963e05 100644 --- a/lib/CodeGen/OperatorGen.cc +++ b/lib/CodeGen/OperatorGen.cc @@ -42,7 +42,7 @@ Value *CodeGen::materializeOperatorReceiver(Value *Val, const TypeInfo *Type) { if (!Val || !Type) return nullptr; auto *Storage = CreateEntryBlockAlloca(Builder->GetInsertBlock()->getParent(), Type->LLVMType, "operator_receiver"); - size_t Object = registerStackObject(Storage, Type->Name, DiagnosticLine, false, true); + size_t Object = registerStackObject(Storage, Type->Name, DiagnosticLine); Builder->CreateStore(Val, Storage); activateStackObject(Object); if (Object != size_t(-1)) StackObjects[Object].Temporary = true; |
