[clang] [Clang] Suppress mismatch warning for same-size pointer/integer casts (PR #203955)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 08:38:48 PDT 2026
================
@@ -1146,12 +1146,27 @@ static bool argTypeIsABIEquivalent(QualType SrcType, QualType DestType,
if (SrcType->isPointerType() && DestType->isPointerType())
return true;
+ bool SrcIntOrEnum =
+ SrcType->isIntegralType(Context) || SrcType->isEnumeralType();
+ bool DstIntOrEnum =
+ DestType->isIntegralType(Context) || DestType->isEnumeralType();
+
----------------
AaronBallman wrote:
`isIntegralOrEnumerationType()` instead?
https://github.com/llvm/llvm-project/pull/203955
More information about the cfe-commits
mailing list