From d93cc18dacf7800972cab91053fc1ed3c68dd34b Mon Sep 17 00:00:00 2001 From: Laytan Date: Thu, 25 Apr 2024 00:19:48 +0200 Subject: fix packed gep loads with wrong alignment --- src/check_type.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index c119ce6b5..9653a980b 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -135,6 +135,8 @@ gb_internal void check_struct_fields(CheckerContext *ctx, Ast *node, SliceStruct.is_polymorphic = true; type = nullptr; + } else if(struct_type->Struct.is_packed) { + type->flags |= TypeFlag_Packed; } } if (type == nullptr) { -- cgit v1.2.3