From: Simon Pilgrim Date: Sun, 26 Mar 2017 17:39:41 +0000 (+0000) Subject: Fix signed/unsigned comparison warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e72658b4f45d5a9a42b312ca79e295774340205;p=llvm Fix signed/unsigned comparison warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298813 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index 9c253a1a6bf..3908f9ee538 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -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) {