Fix -Wconstant-conversion warning with explicit cast
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 4 Aug 2020 17:41:27 +0000 (10:41 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 4 Aug 2020 17:41:27 +0000 (10:41 -0700)
commite31cfc4cd3e393300002e9c519787c96e3b67bab
tree49915a64c03e293fc2734ce44ca370cf243b10d2
parente4441fc653912ec4efc5611a8dd926f8bdd0306c
Fix -Wconstant-conversion warning with explicit cast

Introduced by fd6584a22043b254a323635c142b28ce80ae5b5b

Following similar use of casts in AsmParser.cpp, for instance - ideally
this type would use unsigned chars as they're more representative of raw
data and don't get confused around implementation defined choices of
char's signedness, but this is what it is & the signed/unsigned
conversions are (so far as I understand) safe/bit preserving in this
usage and what's intended, given the API design here.
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp