[llvm] r224194 - Silencing a *lot* of -Wsign-compare warnings; NFC.
Aaron Ballman
aaron at aaronballman.com
Sat Dec 13 08:53:17 PST 2014
Author: aaronballman
Date: Sat Dec 13 10:53:15 2014
New Revision: 224194
URL: http://llvm.org/viewvc/llvm-project?rev=224194&view=rev
Log:
Silencing a *lot* of -Wsign-compare warnings; NFC.
Modified:
llvm/trunk/include/llvm/ADT/SmallBitVector.h
Modified: llvm/trunk/include/llvm/ADT/SmallBitVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallBitVector.h?rev=224194&r1=224193&r2=224194&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallBitVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallBitVector.h Sat Dec 13 10:53:15 2014
@@ -293,7 +293,8 @@ public:
SmallBitVector &set(unsigned Idx) {
if (isSmall()) {
- assert(Idx <= std::numeric_limits<uintptr_t>::digits &&
+ assert(Idx <= static_cast<unsigned>(
+ std::numeric_limits<uintptr_t>::digits) &&
"undefined behavior");
setSmallBits(getSmallBits() | (uintptr_t(1) << Idx));
}
More information about the llvm-commits
mailing list