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:
4b794f8
)
GCC warns about a comparison between signed and unsigned values.
author
Duncan Sands
<baldrick@free.fr>
Thu, 23 Feb 2012 08:23:53 +0000
(08:23 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Thu, 23 Feb 2012 08:23:53 +0000
(08:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151243
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/SparseSet.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/SparseSet.h
b/include/llvm/ADT/SparseSet.h
index 9b276d55331ad0aecfee0d44ec48fab5df961a4f..923c6a5954d0bb22b512309568f42c833b9a58be 100644
(file)
--- a/
include/llvm/ADT/SparseSet.h
+++ b/
include/llvm/ADT/SparseSet.h
@@
-235,7
+235,7
@@
public:
/// Note that end() changes when elements are erased, unlike std::list.
///
iterator erase(iterator I) {
- assert(
I - begin(
) < size() && "Invalid iterator");
+ assert(
unsigned(I - begin()
) < size() && "Invalid iterator");
if (I != end() - 1) {
*I = Dense.back();
unsigned BackKey = KeyOf(Dense.back());