projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639ab38
)
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244213
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/IR/InstrTypes.h
patch
|
blob
|
history
diff --git
a/include/llvm/IR/InstrTypes.h
b/include/llvm/IR/InstrTypes.h
index 70e6de019db87f2fcd2bb294f6871d3366cad802..189c5bc63275039ef2bcfe7a8617596cb6117b9e 100644
(file)
--- a/
include/llvm/IR/InstrTypes.h
+++ b/
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[]