From d502b72d08c981faea2be04e3c40461ac674221d Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 6 Aug 2015 14:07:29 +0000 Subject: [PATCH] Silencing a -Wtype-limits warning; NFC. llvm-svn: 244213 --- llvm/include/llvm/IR/InstrTypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h index 70e6de0..189c5bc 100644 --- a/llvm/include/llvm/IR/InstrTypes.h +++ b/llvm/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[] -- 2.7.4