aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/BasicBlock.cpp
diff options
context:
space:
mode:
authorVasileios Porpodas <vporpodas@google.com>2022-11-28 14:59:35 -0800
committerVasileios Porpodas <vporpodas@google.com>2022-12-14 10:20:05 -0800
commitc143b77b30fc23f70aac94be66e412651771c0fc (patch)
treee7d7d0ba99a486a8d024b1edbfa5fa73e412a522 /llvm/lib/IR/BasicBlock.cpp
parent70174b8035da3f28ef651ee8de96bcfa6d688ada (diff)
downloadllvm-c143b77b30fc23f70aac94be66e412651771c0fc.zip
llvm-c143b77b30fc23f70aac94be66e412651771c0fc.tar.gz
llvm-c143b77b30fc23f70aac94be66e412651771c0fc.tar.bz2
[NFC] Cleanup: BasicBlock::getInstList() and BasicBlock::getSublistAccess() are now private
We now have an adequate set of API functions, including BasicBlock::splice(), BasicBlock::erase(), Instruction::insertAt() etc. that we shouldn't need access to the underlying instruction list. Differential Revision: https://reviews.llvm.org/D139905
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r--llvm/lib/IR/BasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index 0030ff6..06660ba 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -482,7 +482,7 @@ void BasicBlock::splice(BasicBlock::iterator ToIt, BasicBlock *FromBB,
BasicBlock::iterator BasicBlock::erase(BasicBlock::iterator FromIt,
BasicBlock::iterator ToIt) {
- return getInstList().erase(FromIt, ToIt);
+ return InstList.erase(FromIt, ToIt);
}
void BasicBlock::replacePhiUsesWith(BasicBlock *Old, BasicBlock *New) {