[compiler-rt] [ubsan-minimal] Refactor error reporting to use a single function (PR #119920)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 12:55:56 PST 2024


================
@@ -20,20 +21,49 @@ static __sanitizer::atomic_uintptr_t caller_pcs[kMaxCallerPcs];
 // that "too many errors" has already been reported.
 static __sanitizer::atomic_uint32_t caller_pcs_sz;
 
-__attribute__((noinline)) static bool report_this_error(uintptr_t caller) {
+#define MSG_PREFIX "ubsan: "
----------------
vitalybuka wrote:

Please just inline these macros

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


More information about the llvm-commits mailing list