From d26110da7f0757dc4d6cc4e2da6bb3d95d97e96b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 3 Feb 2023 14:25:30 +0000 Subject: [PATCH] Change attributes for the static map get --- src/llvm_backend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index f131fe3e3..b22d7c9a2 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -480,11 +480,11 @@ gb_internal lbValue lb_map_get_proc_for_type(lbModule *m, Type *type) { defer (lb_end_procedure_body(p)); LLVMSetLinkage(p->value, LLVMInternalLinkage); - lb_add_attribute_to_proc(m, p->value, "readonly"); + // lb_add_attribute_to_proc(m, p->value, "readonly"); 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);