From 3d3d5ae1dbf957b6d07ec5deefb2cf9d9e44f1a7 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244213 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/InstrTypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] -- 2.34.1