Silencing a -Wtype-limits warning; NFC.

llvm-svn: 244213
This commit is contained in:
Aaron Ballman 2015-08-06 14:07:29 +00:00
parent 6501e399ce
commit d502b72d08
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public:
typedef SuccIterator<Term, BB> Self; typedef SuccIterator<Term, BB> Self;
inline bool index_is_valid(unsigned idx) { 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[] /// \brief Proxy object to allow write access in operator[]