[polly] ad8963f - [NFC] Cleanup: Replace BB->getInstList().erase() with I->eraseFromParent().
Vasileios Porpodas via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 20:55:45 PST 2022
Author: Vasileios Porpodas
Date: 2022-12-13T20:54:30-08:00
New Revision: ad8963f344c9c7228e50c7ebca637ee04824adb9
URL: https://github.com/llvm/llvm-project/commit/ad8963f344c9c7228e50c7ebca637ee04824adb9
DIFF: https://github.com/llvm/llvm-project/commit/ad8963f344c9c7228e50c7ebca637ee04824adb9.diff
LOG: [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
Added:
Modified:
polly/lib/CodeGen/CodeGeneration.cpp
Removed:
################################################################################
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index b124525d3b5db..f290be6712283 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;
More information about the llvm-commits
mailing list