1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

Changing a cast from unsigned to uint64_t, should be NFC in practice.

llvm-svn: 224249
This commit is contained in:
Aaron Ballman 2014-12-15 14:25:12 +00:00
parent 003ce257e6
commit 4c568b1783

View File

@ -683,7 +683,7 @@ void MCAsmStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size,
// emission domain. This produces nicer output and silences potential
// truncation warnings when round tripping through another assembler.
uint64_t Shift = 64 - EmissionSize * 8;
assert(Shift < static_cast<unsigned>(
assert(Shift < static_cast<uint64_t>(
std::numeric_limits<unsigned long long>::digits) &&
"undefined behavior");
ValueToEmit &= ~0ULL >> Shift;