diff options
Diffstat (limited to 'include/llvm/ADT/SparseSet.h')
-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()); |