================
@@ -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
----------------
AaronBallman wrote:
Are we sure that all the targets we support pass pointers and integers (of the
same width) the same way in all cases? I'm not certain of that, but I've not
done the investigation to be sure.
https://github.com/llvm/llvm-project/pull/178390
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits