aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
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/lib/Bitcode
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/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 0aeb1bc..a2de984 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -4836,7 +4836,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
if (Temp) {
InstructionList.push_back(Temp);
assert(CurBB && "No current BB?");
- Temp->insertAt(CurBB, CurBB->end());
+ Temp->insertInto(CurBB, CurBB->end());
}
} else {
auto CastOp = (Instruction::CastOps)Opc;
@@ -6084,7 +6084,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
// Before weak cmpxchgs existed, the instruction simply returned the
// value loaded from memory, so bitcode files from that era will be
// expecting the first component of a modern cmpxchg.
- I->insertAt(CurBB, CurBB->end());
+ I->insertInto(CurBB, CurBB->end());
I = ExtractValueInst::Create(I, 0);
ResTypeID = CmpTypeID;
} else {
@@ -6408,7 +6408,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
I->deleteValue();
return error("Operand bundles found with no consumer");
}
- I->insertAt(CurBB, CurBB->end());
+ I->insertInto(CurBB, CurBB->end());
// If this was a terminator instruction, move to the next block.
if (I->isTerminator()) {