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

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Wed May 21 12:53:03 PDT 2025


================
@@ -71,9 +76,9 @@ unsigned SpecialCaseList::Matcher::match(StringRef Query) const {
   for (const auto &[Pattern, Pair] : Globs)
     if (Pair.first.match(Query))
       return Pair.second;
-  for (const auto &[Regex, LineNumber] : RegExes)
-    if (Regex->match(Query))
-      return LineNumber;
+  for (auto it = RegExes.crbegin(); it != RegExes.crend(); ++it)
----------------
vitalybuka wrote:

checked - `assert(RegExes.empty());` here never trigger on those tests

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


More information about the cfe-commits mailing list