[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:55:59 PST 2022


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGad8963f344c9: [NFC] Cleanup: Replace BB->getInstList().erase() with I->eraseFromParent(). (authored by vporpo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139992/new/

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.482706.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221214/6f414707/attachment.bin>


More information about the llvm-commits mailing list