diff options
| author | Michael <132351311+perogycook@users.noreply.github.com> | 2023-11-26 00:00:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-26 00:00:47 -0700 |
| commit | 9300c99d654448e4ee353caeac5825a6995ea28e (patch) | |
| tree | 2c95d759e62e77f120cd21878adaba1bea566610 /src/llvm_backend_utility.cpp | |
| parent | 9366bf44a69af7a251a8f96938ae5c9931941c25 (diff) | |
| parent | e8e350144374957cb96d4a38411deba434c93a1d (diff) | |
Merge branch 'odin-lang:master' into raylib5
Diffstat (limited to 'src/llvm_backend_utility.cpp')
| -rw-r--r-- | src/llvm_backend_utility.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/llvm_backend_utility.cpp b/src/llvm_backend_utility.cpp index d8dbfd736..be3ae9c8a 100644 --- a/src/llvm_backend_utility.cpp +++ b/src/llvm_backend_utility.cpp @@ -57,6 +57,10 @@ gb_internal lbValue lb_correct_endianness(lbProcedure *p, lbValue value) { return value; } +gb_internal LLVMValueRef lb_mem_zero_ptr_internal(lbProcedure *p, LLVMValueRef ptr, usize len, unsigned alignment, bool is_volatile) { + return lb_mem_zero_ptr_internal(p, ptr, LLVMConstInt(lb_type(p->module, t_uint), len, false), alignment, is_volatile); +} + gb_internal LLVMValueRef lb_mem_zero_ptr_internal(lbProcedure *p, LLVMValueRef ptr, LLVMValueRef len, unsigned alignment, bool is_volatile) { bool is_inlinable = false; |