================
@@ -371,6 +371,9 @@ static clang::analyze_format_string::ArgType::MatchKind
 matchesSizeTPtrdiffT(ASTContext &C, QualType T, QualType E) {
   using MatchKind = clang::analyze_format_string::ArgType::MatchKind;
 
+  if (T->isBooleanType())
+    return MatchKind::NoMatch;
+
   if (!T->isIntegerType())
----------------
cor3ntin wrote:

```suggestion
  if (!T->isIntegerType() || T->isBooleanType())
```

https://github.com/llvm/llvm-project/pull/174684
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to