forked from OSchip/llvm-project
Silencing a -Wsign-compare warning; NFC.
llvm-svn: 224195
This commit is contained in:
parent
b67d00a868
commit
786a86cb13
|
@ -683,7 +683,8 @@ 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 < std::numeric_limits<unsigned long long>::digits &&
|
||||
assert(Shift < static_cast<unsigned>(
|
||||
std::numeric_limits<unsigned long long>::digits) &&
|
||||
"undefined behavior");
|
||||
ValueToEmit &= ~0ULL >> Shift;
|
||||
EmitIntValue(ValueToEmit, EmissionSize);
|
||||
|
|
Loading…
Reference in New Issue