[llvm-branch-commits] [clang] [UBSan] Implement src:*=sanitize for UBSan (PR #140529)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon May 19 15:16:57 PDT 2025


================
@@ -44,6 +44,12 @@ bool NoSanitizeList::containsFunction(SanitizerMask Mask,
 
 bool NoSanitizeList::containsFile(SanitizerMask Mask, StringRef FileName,
                                   StringRef Category) const {
+  unsigned NoSanLine = SSCL->inSectionBlame(Mask, "src", FileName, Category);
----------------
vitalybuka wrote:

we don't want to do the second lookup if the fist failed

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


More information about the llvm-branch-commits mailing list