diff options
author | Duncan Sands <baldrick@free.fr> | 2012-02-23 08:23:53 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-02-23 08:23:53 +0000 |
commit | 6212d312e7c6b978b767f648fd2d301131554242 (patch) | |
tree | f0f223cf828d294ffbf7c144ad4f8bcdd3d282f5 | |
parent | 4b794f81917d2799225a9d1951729f1798431f81 (diff) |
GCC warns about a comparison between signed and unsigned values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151243 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/SparseSet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SparseSet.h b/include/llvm/ADT/SparseSet.h index 9b276d5533..923c6a5954 100644 --- 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()); |