[compiler-rt] Provide ErrorBadParamsToCopyContiguousContainerAnnotations a more cor… (PR #139870)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 14 03:10:54 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: None (gbMattN)

<details>
<summary>Changes</summary>

…rect 'reason' when constructing ErrorBase

---
Full diff: https://github.com/llvm/llvm-project/pull/139870.diff


1 Files Affected:

- (modified) compiler-rt/lib/asan/asan_errors.h (+1-1) 


``````````diff
diff --git a/compiler-rt/lib/asan/asan_errors.h b/compiler-rt/lib/asan/asan_errors.h
index b3af655e66639..f339b35d2a764 100644
--- a/compiler-rt/lib/asan/asan_errors.h
+++ b/compiler-rt/lib/asan/asan_errors.h
@@ -362,7 +362,7 @@ struct ErrorBadParamsToCopyContiguousContainerAnnotations : ErrorBase {
       u32 tid, BufferedStackTrace *stack_, uptr old_storage_beg_,
       uptr old_storage_end_, uptr new_storage_beg_, uptr new_storage_end_)
       : ErrorBase(tid, 10,
-                  "bad-__sanitizer_annotate_double_ended_contiguous_container"),
+                  "bad-__sanitizer_copy_contiguous_container_annotations"),
         stack(stack_),
         old_storage_beg(old_storage_beg_),
         old_storage_end(old_storage_end_),

``````````

</details>


https://github.com/llvm/llvm-project/pull/139870


More information about the llvm-commits mailing list