diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-20 18:30:20 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-20 18:30:20 +0000 |
commit | 70f8c2049fceeebb3342dfedfd5aceba6fa356d9 (patch) | |
tree | d771671f50644b306e65adb32894fcd458438351 /unittests/IR/ValueTest.cpp | |
parent | 00f8d5fdf7b667e16a0d62188a50edff3e3a92e2 (diff) |
unittests: Remove implicit ilist iterator conversions, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR/ValueTest.cpp')
-rw-r--r-- | unittests/IR/ValueTest.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/unittests/IR/ValueTest.cpp b/unittests/IR/ValueTest.cpp index 7a4c2f696f7..9cf1306dae6 100644 --- a/unittests/IR/ValueTest.cpp +++ b/unittests/IR/ValueTest.cpp @@ -39,9 +39,9 @@ TEST(ValueTest, UsedInBasicBlock) { Function *F = M->getFunction("f"); - EXPECT_FALSE(F->isUsedInBasicBlock(F->begin())); - EXPECT_TRUE((++F->arg_begin())->isUsedInBasicBlock(F->begin())); - EXPECT_TRUE(F->arg_begin()->isUsedInBasicBlock(F->begin())); + EXPECT_FALSE(F->isUsedInBasicBlock(&F->front())); + EXPECT_TRUE((++F->arg_begin())->isUsedInBasicBlock(&F->front())); + EXPECT_TRUE(F->arg_begin()->isUsedInBasicBlock(&F->front())); } TEST(GlobalTest, CreateAddressSpace) { @@ -127,9 +127,9 @@ TEST(ValueTest, printSlots) { BasicBlock &BB = F->getEntryBlock(); ASSERT_EQ(3u, BB.size()); - Instruction *I0 = BB.begin(); + Instruction *I0 = &*BB.begin(); ASSERT_TRUE(I0); - Instruction *I1 = ++BB.begin(); + Instruction *I1 = &*++BB.begin(); ASSERT_TRUE(I1); ModuleSlotTracker MST(M.get()); @@ -194,12 +194,12 @@ TEST(ValueTest, getLocalSlots) { ASSERT_FALSE(F->empty()); BasicBlock &EntryBB = F->getEntryBlock(); ASSERT_EQ(3u, EntryBB.size()); - BasicBlock *BB2 = ++F->begin(); + BasicBlock *BB2 = &*++F->begin(); ASSERT_TRUE(BB2); - Instruction *I0 = EntryBB.begin(); + Instruction *I0 = &*EntryBB.begin(); ASSERT_TRUE(I0); - Instruction *I1 = ++EntryBB.begin(); + Instruction *I1 = &*++EntryBB.begin(); ASSERT_TRUE(I1); ModuleSlotTracker MST(M.get()); @@ -227,7 +227,7 @@ TEST(ValueTest, getLocalSlotDeath) { Function *F = M->getFunction("f"); ASSERT_TRUE(F); ASSERT_FALSE(F->empty()); - BasicBlock *BB2 = ++F->begin(); + BasicBlock *BB2 = &*++F->begin(); ASSERT_TRUE(BB2); ModuleSlotTracker MST(M.get()); |