[PATCH] D28412: Fix use after free
Xin Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 13:59:54 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL291288: Fix use after free (authored by trentxintong).
Changed prior to commit:
https://reviews.llvm.org/D28412?vs=83419&id=83422#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28412
Files:
llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
Index: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -1382,8 +1382,8 @@
Pred->getInstList().splice(BI->getIterator(), Succ->getInstList(),
Succ->begin(), Succ->end());
LPM->deleteSimpleAnalysisValue(BI, L);
- BI->eraseFromParent();
RemoveFromWorklist(BI, Worklist);
+ BI->eraseFromParent();
// Remove Succ from the loop tree.
LI->removeBlock(Succ);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28412.83422.patch
Type: text/x-patch
Size: 629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170106/feaae000/attachment.bin>
More information about the llvm-commits
mailing list