diff options
| author | gingerBill <bill@gingerbill.org> | 2023-10-27 14:55:54 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-10-27 14:55:54 +0100 |
| commit | 034aead9301305d41756ef3b5b9b60a88c95d825 (patch) | |
| tree | 4e837806f73fd30f6aba217a0f3c6a2014796ef9 /src/llvm_backend.cpp | |
| parent | c8a5bafc6b794c75cd89efca86e51106fac15837 (diff) | |
Only make static map get calls inlineable outside of debug builds
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 8f5d8966d..716c50837 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -506,9 +506,9 @@ gb_internal lbValue lb_map_get_proc_for_type(lbModule *m, Type *type) { LLVMSetLinkage(p->value, LLVMInternalLinkage); lb_add_attribute_to_proc(m, p->value, "nounwind"); - // if (build_context.ODIN_DEBUG) { + if (build_context.ODIN_DEBUG) { lb_add_attribute_to_proc(m, p->value, "noinline"); - // } + } LLVMValueRef x = LLVMGetParam(p->value, 0); LLVMValueRef y = LLVMGetParam(p->value, 1); |