summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unittests/VMCore/InstructionsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp
index 882818536e..c1baa74487 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());