diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-06-21 11:01:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-21 11:01:52 +0100 |
| commit | 8d37f9de09b3c9ce86f11a9cdcb8983e6085ea3e (patch) | |
| tree | 4c06a4c7e16ab0d42ffdaad7e5f0ebf7be33feb6 /src/llvm_backend_general.cpp | |
| parent | edb1f8a76dfb380d862fb2d2d1239a398fc87fcd (diff) | |
| parent | 3db8972c990746557916aa640842817094f9ecff (diff) | |
Merge pull request #5378 from laytan/fix-wasm-c-abi-raw-unions
Fix WASM C ABI for raw unions
Diffstat (limited to 'src/llvm_backend_general.cpp')
| -rw-r--r-- | src/llvm_backend_general.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_general.cpp b/src/llvm_backend_general.cpp index 5aaa7f63a..5d6a55973 100644 --- a/src/llvm_backend_general.cpp +++ b/src/llvm_backend_general.cpp @@ -2206,7 +2206,7 @@ gb_internal LLVMTypeRef lb_type_internal(lbModule *m, Type *type) { field_count = 3; } LLVMTypeRef *fields = gb_alloc_array(permanent_allocator(), LLVMTypeRef, field_count); - fields[0] = LLVMPointerType(lb_type(m, type->Pointer.elem), 0); + fields[0] = LLVMPointerType(lb_type(m, type->SoaPointer.elem), 0); if (bigger_int) { fields[1] = lb_type_padding_filler(m, build_context.ptr_size, build_context.ptr_size); fields[2] = LLVMIntTypeInContext(ctx, 8*cast(unsigned)build_context.int_size); |