[clang] [Clang] Allow -Wcast-function-type for same-width pointer-integer conversions (PR #178390)
Jessica Clarke via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 2 05:53:56 PDT 2026
================
@@ -1145,6 +1145,17 @@ static bool argTypeIsABIEquivalent(QualType SrcType, QualType DestType,
Context.getTypeSizeInChars(DestType))
return true;
+ // Allow pointer-to-integral and integral-to-pointer conversions if sizes
+ // match. On platforms where pointers and certain integer types (like
----------------
jrtc27 wrote:
(though only for the return value; arguments are always passed on the stack)
https://github.com/llvm/llvm-project/pull/178390
More information about the cfe-commits
mailing list