summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-17 19:27:31 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-17 19:27:31 +0000
commitf5bf7c52eb35463ef86c731692615a69ddc68a38 (patch)
treeadc2a923b4ba1646cad7c387b42001431289ed5c /unittests
parent0afc29c3e6ba240ee187fd34ba1ecbe1175c879e (diff)
downloadllvm-f5bf7c52eb35463ef86c731692615a69ddc68a38.tar.gz
llvm-f5bf7c52eb35463ef86c731692615a69ddc68a38.tar.bz2
llvm-f5bf7c52eb35463ef86c731692615a69ddc68a38.tar.xz
feedback from Nick
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/InstructionsTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp
index 054193f31e..882818536e 100644
--- a/unittests/VMCore/InstructionsTest.cpp
+++ b/unittests/VMCore/InstructionsTest.cpp
@@ -11,6 +11,7 @@
#include "llvm/BasicBlock.h"
#include "llvm/DerivedTypes.h"
#include "llvm/LLVMContext.h"
+#include "llvm/ADT/STLExtras.h"
#include "gtest/gtest.h"
namespace llvm {
@@ -60,7 +61,7 @@ TEST(InstructionsTest, BranchInst) {
EXPECT_NE(b0->op_begin(), b0->op_end());
EXPECT_EQ(b0->op_begin() + 1, b0->op_end());
- EXPECT_EQ(b0->op_begin() + 1, b0->op_end());
+ EXPECT_EQ(next(b0->op_begin()), b0->op_end());
const IntegerType* Int1 = IntegerType::get(C, 1);
Constant* One = ConstantInt::get(Int1, 1, true);