Fix signed/unsigned comparison warnings.

llvm-svn: 298813
This commit is contained in:
Simon Pilgrim 2017-03-26 17:39:41 +00:00
parent 7375448893
commit ca8bd25824
1 changed files with 1 additions and 1 deletions

View File

@ -3150,7 +3150,7 @@ public:
assert(((unsigned)Index == DefaultPseudoIndex ||
(unsigned)Index < SI->getNumCases()) &&
"Index out the number of cases.");
return Index != DefaultPseudoIndex ? Index + 1 : 0;
return (unsigned)Index != DefaultPseudoIndex ? Index + 1 : 0;
}
Self &operator+=(ptrdiff_t N) {