diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-15 11:25:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-15 11:25:54 +0100 |
| commit | 596066aa0453752f24cc2fa5087fafe2c4686536 (patch) | |
| tree | d74030d55bd21b7631a212a29e9ae949f6de22dd /src/llvm_backend_proc.cpp | |
| parent | 186589266b8a53d089ce4782214c59ed9c8f64cc (diff) | |
| parent | e7ecb16a1e0fa98e2ad413100de9cf4ffe9820e8 (diff) | |
Merge pull request #5808 from laytan/llvm-21
llvm 21 support
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 08ef42f01..9144ce426 100644 --- a/src/llvm_backend_proc.cpp +++ b/src/llvm_backend_proc.cpp @@ -272,7 +272,7 @@ gb_internal lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool i } if (e->flags&EntityFlag_NoCapture) { if (is_type_internally_pointer_like(e->type)) { - lb_add_proc_attribute_at_index(p, offset+parameter_index, "nocapture"); + lb_add_nocapture_proc_attribute_at_index(p, offset+parameter_index); } } parameter_index += 1; @@ -430,7 +430,7 @@ gb_internal lbProcedure *lb_create_dummy_procedure(lbModule *m, String link_name if (pt->Proc.calling_convention == ProcCC_Odin) { lb_add_proc_attribute_at_index(p, offset+parameter_index, "noalias"); lb_add_proc_attribute_at_index(p, offset+parameter_index, "nonnull"); - lb_add_proc_attribute_at_index(p, offset+parameter_index, "nocapture"); + lb_add_nocapture_proc_attribute_at_index(p, offset+parameter_index); } return p; } |