mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Silencing a -Wsign-compare warning; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
978aeec05a
commit
eefc8cb6c0
@ -683,7 +683,8 @@ void MCAsmStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size,
|
|||||||
// emission domain. This produces nicer output and silences potential
|
// emission domain. This produces nicer output and silences potential
|
||||||
// truncation warnings when round tripping through another assembler.
|
// truncation warnings when round tripping through another assembler.
|
||||||
uint64_t Shift = 64 - EmissionSize * 8;
|
uint64_t Shift = 64 - EmissionSize * 8;
|
||||||
assert(Shift < std::numeric_limits<unsigned long long>::digits &&
|
assert(Shift < static_cast<unsigned>(
|
||||||
|
std::numeric_limits<unsigned long long>::digits) &&
|
||||||
"undefined behavior");
|
"undefined behavior");
|
||||||
ValueToEmit &= ~0ULL >> Shift;
|
ValueToEmit &= ~0ULL >> Shift;
|
||||||
EmitIntValue(ValueToEmit, EmissionSize);
|
EmitIntValue(ValueToEmit, EmissionSize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user