From: Aaron Ballman Date: Sat, 13 Dec 2014 16:53:15 +0000 (+0000) Subject: Silencing a *lot* of -Wsign-compare warnings; NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=978aeec05a7e1536e0f9082b2990aae1d6a72449;p=llvm Silencing a *lot* of -Wsign-compare warnings; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224194 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallBitVector.h b/include/llvm/ADT/SmallBitVector.h index 42e89a1c4fa..1e2f365b104 100644 --- a/include/llvm/ADT/SmallBitVector.h +++ b/include/llvm/ADT/SmallBitVector.h @@ -293,7 +293,8 @@ public: SmallBitVector &set(unsigned Idx) { if (isSmall()) { - assert(Idx <= std::numeric_limits::digits && + assert(Idx <= static_cast( + std::numeric_limits::digits) && "undefined behavior"); setSmallBits(getSmallBits() | (uintptr_t(1) << Idx)); }