From: Zachary Turner Date: Mon, 13 Mar 2017 16:41:49 +0000 (+0000) Subject: Fix a warning due to signed/unsigned comparison. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fc3de53218e883dc2f7126e0abbaacd6092436a;p=llvm Fix a warning due to signed/unsigned comparison. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297639 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index 111c7a1cb3b..7efd40e6c51 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -1031,7 +1031,7 @@ public: const result_type &operator*() const { return Result; } enumerator_iter &operator++() { - assert(Result.Index != -1); + assert(Result.Index != size_t(-1)); ++Result.Iter; ++Result.Index; return *this;