No type_lowering in the frontend.

This commit is contained in:
Christoffer Lerno
2024-08-01 13:26:47 +02:00
parent 3159f036a2
commit 310dadef45

View File

@@ -281,7 +281,7 @@ AlignSize type_alloca_alignment(Type *type)
AlignSize align = type_abi_alignment(type);
if (align < 16 && (platform_target.abi == ABI_X64 || platform_target.abi == ABI_WIN64))
{
type = type_lowering(type);
type = type_flatten(type);
if (type->type_kind == TYPE_ARRAY && type_size(type) >= 16) return 16;
}
return align;