diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-06-09 12:46:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 12:46:22 +0100 |
| commit | 87247b8bb787e53f7ca26fba1a11739844bf442d (patch) | |
| tree | 2415eb49e48ab985237ca61211e42cf1a668f2a6 /src/llvm_backend_proc.cpp | |
| parent | b8ac7776494eb7c55828b11fa5a431ef2eb44197 (diff) | |
| parent | f8228a91d1823a2f586dcca5f5ff9f57d17dc92f (diff) | |
Merge pull request #5286 from Feoramund/no-san-mem
Add `@(no_sanitize_memory)` with additions to `base:sanitizer`
Diffstat (limited to 'src/llvm_backend_proc.cpp')
| -rw-r--r-- | src/llvm_backend_proc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp index f51ed2b4d..0a51b5cb5 100644 --- a/src/llvm_backend_proc.cpp +++ b/src/llvm_backend_proc.cpp @@ -345,7 +345,7 @@ gb_internal lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool i if (build_context.sanitizer_flags & SanitizerFlag_Address && !entity->Procedure.no_sanitize_address) { lb_add_attribute_to_proc(m, p->value, "sanitize_address"); } - if (build_context.sanitizer_flags & SanitizerFlag_Memory) { + if (build_context.sanitizer_flags & SanitizerFlag_Memory && !entity->Procedure.no_sanitize_memory) { lb_add_attribute_to_proc(m, p->value, "sanitize_memory"); } if (build_context.sanitizer_flags & SanitizerFlag_Thread) { |