]> granicus.if.org Git - llvm/commitdiff
Fix signed/unsigned comparison warnings.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 26 Mar 2017 17:39:41 +0000 (17:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 26 Mar 2017 17:39:41 +0000 (17:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298813 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Instructions.h

index 9c253a1a6bf292df5cf149194e91179ea88b5ebb..3908f9ee538434cbf34a44a4a26168d447a05cc1 100644 (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) {