From 3db074900fac9341a6df40824b310a9f1c9152bf Mon Sep 17 00:00:00 2001 From: ARay Date: Fri, 19 Jun 2026 15:05:23 +0300 Subject: [PATCH] comment out dead code: val is not used anywhere else in that scope --- src/llvm_backend_const.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/llvm_backend_const.cpp b/src/llvm_backend_const.cpp index 0f0d458dc..20df5fdd0 100644 --- a/src/llvm_backend_const.cpp +++ b/src/llvm_backend_const.cpp @@ -1970,10 +1970,13 @@ gb_internal lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, Ty for_array(i, cl->elems) { Entity *f = type->Struct.fields[i]; TypeAndValue tav = cl->elems[i]->tav; - ExactValue val = {}; - if (tav.mode != Addressing_Invalid) { - val = tav.value; - } + + // INFO: dead code: + + // ExactValue val = {}; + // if (tav.mode != Addressing_Invalid) { + // val = tav.value; + // } i32 index = field_remapping[f->Variable.field_index]; if (elem_type_can_be_constant(f->type)) {