From 786a86cb13480c2b3713a6305e3843b8edac841e Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sat, 13 Dec 2014 16:55:02 +0000 Subject: [PATCH] Silencing a -Wsign-compare warning; NFC. llvm-svn: 224195 --- llvm/lib/MC/MCAsmStreamer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index a4f82a7..70b421d 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -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::digits && + assert(Shift < static_cast( + std::numeric_limits::digits) && "undefined behavior"); ValueToEmit &= ~0ULL >> Shift; EmitIntValue(ValueToEmit, EmissionSize); -- 2.7.4