Add missing cast to global/static var alignments.

This commit is contained in:
Barinzaya
2025-04-24 14:27:39 -04:00
parent b41a776027
commit 9284ebb5e8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2598,7 +2598,7 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
LLVMSetLinkage(g.value, USE_SEPARATE_MODULES ? LLVMWeakAnyLinkage : LLVMInternalLinkage);
}
lb_set_linkage_from_entity_flags(m, g.value, e->flags);
LLVMSetAlignment(g.value, type_align_of(e->type));
LLVMSetAlignment(g.value, cast(u32)type_align_of(e->type));
if (e->Variable.link_section.len > 0) {
LLVMSetSection(g.value, alloc_cstring(permanent_allocator(), e->Variable.link_section));