diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-03-17 19:27:31 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-03-17 19:27:31 +0000 |
commit | 62217205999a8d7f15ca51de408ca080706157dc (patch) | |
tree | d7dd835b64f662249d3a993f6da653301a302901 /llvm/unittests/VMCore/InstructionsTest.cpp | |
parent | 71ba5f27ded44f3dc794b2592b66a405976157dd (diff) | |
download | bcm5719-llvm-62217205999a8d7f15ca51de408ca080706157dc.tar.gz bcm5719-llvm-62217205999a8d7f15ca51de408ca080706157dc.zip |
feedback from Nick
llvm-svn: 98761
Diffstat (limited to 'llvm/unittests/VMCore/InstructionsTest.cpp')
-rw-r--r-- | llvm/unittests/VMCore/InstructionsTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/VMCore/InstructionsTest.cpp b/llvm/unittests/VMCore/InstructionsTest.cpp index 054193f31ee..882818536ee 100644 --- a/llvm/unittests/VMCore/InstructionsTest.cpp +++ b/llvm/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); |