From 310dadef45eac44830c568b03eb351a34ed7e5a9 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Thu, 1 Aug 2024 13:26:47 +0200 Subject: [PATCH] No type_lowering in the frontend. --- src/compiler/codegen_general.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/codegen_general.c b/src/compiler/codegen_general.c index bd72e073b..c4de8d681 100644 --- a/src/compiler/codegen_general.c +++ b/src/compiler/codegen_general.c @@ -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;