From fe7bb05ad1bb2644140a2009e34b0b581d9fee67 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 18 Mar 2010 18:59:08 +0000 Subject: [PATCH] another one git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98850 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/VMCore/InstructionsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp index 882818536ee..c1baa74487a 100644 --- a/unittests/VMCore/InstructionsTest.cpp +++ b/unittests/VMCore/InstructionsTest.cpp @@ -59,7 +59,7 @@ TEST(InstructionsTest, BranchInst) { EXPECT_EQ(b0->getNumOperands(), 1U); EXPECT_NE(b0->op_begin(), b0->op_end()); - EXPECT_EQ(b0->op_begin() + 1, b0->op_end()); + EXPECT_EQ(next(b0->op_begin()), b0->op_end()); EXPECT_EQ(next(b0->op_begin()), b0->op_end());