Silencing a -Wtype-limits warning; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 6 Aug 2015 14:07:29 +0000 (14:07 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 6 Aug 2015 14:07:29 +0000 (14:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244213 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/InstrTypes.h

index 70e6de019db87f2fcd2bb294f6871d3366cad802..189c5bc63275039ef2bcfe7a8617596cb6117b9e 100644 (file)
@@ -112,7 +112,7 @@ public:
     typedef SuccIterator<Term, BB> Self;
 
     inline bool index_is_valid(unsigned idx) {
-      return idx >= 0 && idx < TermInst->getNumSuccessors();
+      return idx < TermInst->getNumSuccessors();
     }
 
     /// \brief Proxy object to allow write access in operator[]