diff options
| author | gingerBill <bill@gingerbill.org> | 2022-07-24 20:58:50 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-07-24 20:58:50 +0100 |
| commit | b28d4b753b1a3b52f90e215218e63ef9bf455bc9 (patch) | |
| tree | 32eafaa306d7ea6622cc0824e02d36c0c924909a /src | |
| parent | e6ab4f48567175cc192a658fb6d7b067e38912d8 (diff) | |
Temp fix for `lb_emit_store`
Diffstat (limited to 'src')
| -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 52787d427..b61439238 100644 --- a/src/llvm_backend_general.cpp +++ b/src/llvm_backend_general.cpp @@ -858,7 +858,7 @@ void lb_emit_store(lbProcedure *p, lbValue ptr, lbValue value) { if (lb_sizeof(src_t) <= lb_max_zero_init_size()) { LLVMBuildStore(p->builder, LLVMConstNull(src_t), ptr.value); } else { - lb_mem_zero_ptr(p, ptr.value, a, LLVMGetAlignment(ptr.value)); + lb_mem_zero_ptr(p, ptr.value, a, 1); } return; } |