aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/InstructionsTest.cpp
diff options
context:
space:
mode:
authorVasileios Porpodas <vporpodas@google.com>2022-12-14 17:42:26 -0800
committerVasileios Porpodas <vporpodas@google.com>2022-12-15 12:27:45 -0800
commit32b38d248fd3c75abc5c86ab6677b6cb08a703cc (patch)
tree98ecfc584abe0868a651af0360bd2597b9bbb66b /llvm/unittests/IR/InstructionsTest.cpp
parente0f2150e99e5e429c33047f25e3da2ab146d0f57 (diff)
downloadllvm-32b38d248fd3c75abc5c86ab6677b6cb08a703cc.zip
llvm-32b38d248fd3c75abc5c86ab6677b6cb08a703cc.tar.gz
llvm-32b38d248fd3c75abc5c86ab6677b6cb08a703cc.tar.bz2
[NFC] Rename Instruction::insertAt() to Instruction::insertInto(), to be consistent with BasicBlock::insertInto()
Differential Revision: https://reviews.llvm.org/D140085
Diffstat (limited to 'llvm/unittests/IR/InstructionsTest.cpp')
-rw-r--r--llvm/unittests/IR/InstructionsTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/InstructionsTest.cpp b/llvm/unittests/IR/InstructionsTest.cpp
index 4718aa8..eb506f6 100644
--- a/llvm/unittests/IR/InstructionsTest.cpp
+++ b/llvm/unittests/IR/InstructionsTest.cpp
@@ -1695,7 +1695,7 @@ TEST(InstructionsTest, InsertAtBegin) {
BasicBlock *BB = &*F->begin();
Instruction *Ret = &*BB->begin();
Instruction *I = BinaryOperator::CreateAdd(ArgA, ArgB);
- auto It = I->insertAt(BB, BB->begin());
+ auto It = I->insertInto(BB, BB->begin());
EXPECT_EQ(&*It, I);
EXPECT_EQ(I->getNextNode(), Ret);
}
@@ -1714,7 +1714,7 @@ TEST(InstructionsTest, InsertAtEnd) {
BasicBlock *BB = &*F->begin();
Instruction *Ret = &*BB->begin();
Instruction *I = BinaryOperator::CreateAdd(ArgA, ArgB);
- auto It = I->insertAt(BB, BB->end());
+ auto It = I->insertInto(BB, BB->end());
EXPECT_EQ(&*It, I);
EXPECT_EQ(Ret->getNextNode(), I);
}