diff options
author | Vasileios Porpodas <vporpodas@google.com> | 2022-11-28 14:43:11 -0800 |
---|---|---|
committer | Vasileios Porpodas <vporpodas@google.com> | 2022-12-12 13:33:05 -0800 |
commit | 06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2 (patch) | |
tree | bf4f7cf10a99e47d1867a88bb794c13f986b54c3 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | |
parent | 816b5e546c6553afd463f9630b248a17702700c9 (diff) | |
download | llvm-06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2.zip llvm-06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2.tar.gz llvm-06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2.tar.bz2 |
[NFC] Cleanup: Replaces BB->getInstList().insert() with I->insertAt().
This is part of a series of cleanup patches towards making BasicBlock::getInstList() private.
Differential Revision: https://reviews.llvm.org/D138877
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp index 451a0f3..068565a 100644 --- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp +++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp @@ -1838,7 +1838,7 @@ BranchInst *CHR::createMergedBranch(BasicBlock *PreEntryBlock, BranchInst *NewBR = BranchInst::Create(NewEntryBlock, cast<BasicBlock>(VMap[NewEntryBlock]), ConstantInt::getTrue(F.getContext())); - PreEntryBlock->getInstList().push_back(NewBR); + NewBR->insertAt(PreEntryBlock, PreEntryBlock->end()); assert(NewEntryBlock->getSinglePredecessor() == EntryBlock && "NewEntryBlock's only pred must be EntryBlock"); return NewBR; |