This code compares getPointerTypeSizeInBits and getTypeSizeInBits.
getPointerTypeSizeInBits contains a call to getScalarType while
getTypeSizeInBits does not. This makes the code incorrect for vectors.
Additionally, for scalable vectors getTypeSizeInBits returns a scalable
TypeSize but getPointerTypeSizeInBits always returns an unsigned
integer. I believe the comparison forces the scalable TypeSize to
be converted to unsigned which triggers a warning.
Fixes PR59480.
Still need to add a test.
clang-format not found in user’s local PATH; not linting file.