Merge pull request #2552 from jcmoyer/fix-2466

Use compound literal storage for ValueDecl lvals
This commit is contained in:
gingerBill authored and GitHub committed 2023-06-08 12:34:40 +01:00
commit 4c17e2e97e
4 files changed
+25

No files matched your search

+1
View File
@@ -2463,6 +2463,7 @@ gb_internal void lb_build_stmt(lbProcedure *p, Ast *node) {
lb_add_entity(p->module, e, val);
lb_add_debug_local_variable(p, val.value, e->type, e->token);
lvals_preused[lval_index] = true;
lvals[lval_index] = *comp_lit_addr;
}
}
}