summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/ADT/STLExtras.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index 111c7a1cb3b..7efd40e6c51 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -1031,7 +1031,7 @@ public:
const result_type &operator*() const { return Result; }
enumerator_iter<R> &operator++() {
- assert(Result.Index != -1);
+ assert(Result.Index != size_t(-1));
++Result.Iter;
++Result.Index;
return *this;
OpenPOWER on IntegriCloud