[clang] [Sema] Fix ICE due to incorrect _Bool handling in format string checking (PR #174684)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 9 02:05:59 PST 2026
================
@@ -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
More information about the cfe-commits
mailing list