diff options
author | Vasileios Porpodas <vporpodas@google.com> | 2022-12-14 17:42:26 -0800 |
---|---|---|
committer | Vasileios Porpodas <vporpodas@google.com> | 2022-12-15 12:27:45 -0800 |
commit | 32b38d248fd3c75abc5c86ab6677b6cb08a703cc (patch) | |
tree | 98ecfc584abe0868a651af0360bd2597b9bbb66b /llvm/lib/IR/Instructions.cpp | |
parent | e0f2150e99e5e429c33047f25e3da2ab146d0f57 (diff) | |
download | llvm-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/IR/Instructions.cpp')
-rw-r--r-- | llvm/lib/IR/Instructions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 4ca1323..24afd66 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -824,7 +824,7 @@ static Instruction *createMalloc(Instruction *InsertBefore, MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); Result = MCall; if (Result->getType() != AllocPtrType) { - MCall->insertAt(InsertAtEnd, InsertAtEnd->end()); + MCall->insertInto(InsertAtEnd, InsertAtEnd->end()); // Create a cast instruction to convert to the right type... Result = new BitCastInst(MCall, AllocPtrType, Name); } @@ -2815,7 +2815,7 @@ UnaryOperator *UnaryOperator::Create(UnaryOps Op, Value *S, const Twine &Name, BasicBlock *InsertAtEnd) { UnaryOperator *Res = Create(Op, S, Name); - Res->insertAt(InsertAtEnd, InsertAtEnd->end()); + Res->insertInto(InsertAtEnd, InsertAtEnd->end()); return Res; } @@ -2946,7 +2946,7 @@ BinaryOperator *BinaryOperator::Create(BinaryOps Op, Value *S1, Value *S2, const Twine &Name, BasicBlock *InsertAtEnd) { BinaryOperator *Res = Create(Op, S1, S2, Name); - Res->insertAt(InsertAtEnd, InsertAtEnd->end()); + Res->insertInto(InsertAtEnd, InsertAtEnd->end()); return Res; } |