comment out dead code: val is not used anywhere else in that scope

This commit is contained in:
ARay
2026-06-19 15:05:23 +03:00
parent c3b2c9a9b3
commit 3db074900f

View File

@@ -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)) {