mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 06:13:45 +00:00
Fix global constant union initialization bug.
This commit is contained in:
@@ -3421,7 +3421,8 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
|
||||
cc.link_section = e->Variable.link_section;
|
||||
|
||||
ExactValue v = tav.value;
|
||||
lbValue init = lb_const_value(m, e->type, v, cc);
|
||||
lbValue init = lb_const_value(m, e->type, v, cc, tav.type);
|
||||
|
||||
|
||||
LLVMDeleteGlobal(g.value);
|
||||
g.value = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user