projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6501e39
)
Silencing a -Wtype-limits warning; NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Thu, 6 Aug 2015 14:07:29 +0000
(14:07 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Thu, 6 Aug 2015 14:07:29 +0000
(14:07 +0000)
llvm-svn: 244213
llvm/include/llvm/IR/InstrTypes.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/InstrTypes.h
b/llvm/include/llvm/IR/InstrTypes.h
index
70e6de0
..
189c5bc
100644
(file)
--- a/
llvm/include/llvm/IR/InstrTypes.h
+++ b/
llvm/include/llvm/IR/InstrTypes.h
@@
-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[]