From ae63fd923039b6d3ab9a8abe0407827bf5fcd86d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 30 May 2024 23:08:42 +0100 Subject: [PATCH] Fix #3649 --- src/llvm_backend_utility.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/llvm_backend_utility.cpp b/src/llvm_backend_utility.cpp index f7674a8bc..94153e233 100644 --- a/src/llvm_backend_utility.cpp +++ b/src/llvm_backend_utility.cpp @@ -1365,6 +1365,8 @@ gb_internal lbValue lb_emit_deep_field_gep(lbProcedure *p, lbValue e, Selection } else { e = lb_emit_ptr_offset(p, lb_emit_load(p, arr), index); } + e.type = alloc_type_multi_pointer_to_pointer(e.type); + } else if (is_type_quaternion(type)) { e = lb_emit_struct_ep(p, e, index); } else if (is_type_raw_union(type)) {