[PATCH] D139992: [NFC] Cleanup: Replace BB->getInstList().erase() with I->eraseFromParent().
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 20:28:22 PST 2022
vporpo created this revision.
Herald added a reviewer: bollu.
Herald added a project: All.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This is part of a series of patches that aim at making BasicBlock::getInstList() private.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139992
Files:
polly/lib/CodeGen/CodeGeneration.cpp
Index: polly/lib/CodeGen/CodeGeneration.cpp
===================================================================
--- polly/lib/CodeGen/CodeGeneration.cpp
+++ polly/lib/CodeGen/CodeGeneration.cpp
@@ -153,7 +153,7 @@
switch (IT->getIntrinsicID()) {
case Intrinsic::lifetime_start:
case Intrinsic::lifetime_end:
- BB->getInstList().erase(InstIt);
+ IT->eraseFromParent();
break;
default:
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139992.482695.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221214/b4ab7d64/attachment.bin>
More information about the llvm-commits
mailing list