diff options
| author | gingerBill <bill@gingerbill.org> | 2023-04-20 12:18:13 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-04-20 12:18:13 +0100 |
| commit | 685f7d0feae7b7bbfee5b24f6e6dc6751366d36e (patch) | |
| tree | 782c0fd8133e9227d53ad72189d200a62598b05b /src/llvm_backend_proc.cpp | |
| parent | f5d9ca64f95ab47b6c2809275755ebca260c9448 (diff) | |
Rename `word_size` to `ptr_size` internally to make it clearer
Diffstat (limited to 'src/llvm_backend_proc.cpp')
| -rw-r--r-- | src/llvm_backend_proc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp index ddf058668..651ebf35c 100644 --- a/src/llvm_backend_proc.cpp +++ b/src/llvm_backend_proc.cpp @@ -14,7 +14,7 @@ gb_internal void lb_mem_copy_overlapping(lbProcedure *p, lbValue dst, lbValue sr char const *name = "llvm.memmove"; if (LLVMIsConstant(len.value)) { i64 const_len = cast(i64)LLVMConstIntGetSExtValue(len.value); - if (const_len <= 4*build_context.word_size) { + if (const_len <= 4*build_context.int_size) { name = "llvm.memmove.inline"; } } @@ -43,7 +43,7 @@ gb_internal void lb_mem_copy_non_overlapping(lbProcedure *p, lbValue dst, lbValu char const *name = "llvm.memcpy"; if (LLVMIsConstant(len.value)) { i64 const_len = cast(i64)LLVMConstIntGetSExtValue(len.value); - if (const_len <= 4*build_context.word_size) { + if (const_len <= 4*build_context.int_size) { name = "llvm.memcpy.inline"; } } |