projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix off by 1 (insn) error in eh.sjlj.setjmp thumb code sequence.
[oota-llvm.git]
/
unittests
/
VMCore
/
InstructionsTest.cpp
diff --git
a/unittests/VMCore/InstructionsTest.cpp
b/unittests/VMCore/InstructionsTest.cpp
index 882818536ee1ddbde44bca6298bbafa2abe8e05b..c1baa74487aa75d7679c701a636979433f026f52 100644
(file)
--- 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());