[llvm] r244213 - Silencing a -Wtype-limits warning; NFC.
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 07:07:29 PDT 2015
Author: aaronballman
Date: Thu Aug 6 09:07:29 2015
New Revision: 244213
URL: http://llvm.org/viewvc/llvm-project?rev=244213&view=rev
Log:
Silencing a -Wtype-limits warning; NFC.
Modified:
llvm/trunk/include/llvm/IR/InstrTypes.h
Modified: llvm/trunk/include/llvm/IR/InstrTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/InstrTypes.h?rev=244213&r1=244212&r2=244213&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/InstrTypes.h (original)
+++ llvm/trunk/include/llvm/IR/InstrTypes.h Thu Aug 6 09:07:29 2015
@@ -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[]
More information about the llvm-commits
mailing list