diff options
| author | gingerBill <bill@gingerbill.org> | 2024-05-30 23:08:42 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-05-30 23:08:42 +0100 |
| commit | ae63fd923039b6d3ab9a8abe0407827bf5fcd86d (patch) | |
| tree | 985a6e653952c33e359179ccef0157a73a214a11 /src/llvm_backend_utility.cpp | |
| parent | 6d9957d7e4fe51bdb5c80c145fdad17fec0ecc54 (diff) | |
Fix #3649
Diffstat (limited to 'src/llvm_backend_utility.cpp')
| -rw-r--r-- | src/llvm_backend_utility.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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)) { |