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
This commit is contained in:
Aaron Ballman 2014-12-13 16:53:15 +00:00
parent 1b40b342eb
commit 978aeec05a

View File

@ -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));
}