From: Aaron Ballman Date: Thu, 6 Aug 2015 14:07:29 +0000 (+0000) Subject: Silencing a -Wtype-limits warning; NFC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3d3d5ae1dbf957b6d07ec5deefb2cf9d9e44f1a7;p=oota-llvm.git Silencing a -Wtype-limits warning; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244213 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index 70e6de019db..189c5bc6327 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -112,7 +112,7 @@ public: typedef SuccIterator 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[]