projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b40b34
)
Silencing a *lot* of -Wsign-compare warnings; NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Sat, 13 Dec 2014 16:53:15 +0000
(16:53 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Sat, 13 Dec 2014 16:53:15 +0000
(16:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224194
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/SmallBitVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/SmallBitVector.h
b/include/llvm/ADT/SmallBitVector.h
index 42e89a1c4fac9a4f64a35844ca06b0a4af804389..1e2f365b1040b3757203981b59ca58966357d09b 100644
(file)
--- 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<uintptr_t>::digits &&
+ assert(Idx <= static_cast<unsigned>(
+ std::numeric_limits<uintptr_t>::digits) &&
"undefined behavior");
setSmallBits(getSmallBits() | (uintptr_t(1) << Idx));
}