aboutsummaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorVasileios Porpodas <vporpodas@google.com>2022-12-13 20:24:16 -0800
committerVasileios Porpodas <vporpodas@google.com>2022-12-13 20:54:30 -0800
commitad8963f344c9c7228e50c7ebca637ee04824adb9 (patch)
treeec69599868b8da84af00a2cf235583764817b81a /polly
parente2d75f9b6ba58940d82a2e1ef92e8270d6793788 (diff)
downloadllvm-ad8963f344c9c7228e50c7ebca637ee04824adb9.zip
llvm-ad8963f344c9c7228e50c7ebca637ee04824adb9.tar.gz
llvm-ad8963f344c9c7228e50c7ebca637ee04824adb9.tar.bz2
[NFC] Cleanup: Replace BB->getInstList().erase() with I->eraseFromParent().
This is part of a series of patches that aim at making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D139992
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index b124525..f290be6 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -153,7 +153,7 @@ static void removeLifetimeMarkers(Region *R) {
switch (IT->getIntrinsicID()) {
case Intrinsic::lifetime_start:
case Intrinsic::lifetime_end:
- BB->getInstList().erase(InstIt);
+ IT->eraseFromParent();
break;
default:
break;