diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2012-06-24 01:44:08 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2012-06-24 01:44:08 +0000 |
| commit | bfb07fb562a80637dc3ba3bb4ca2f44ab21e6612 (patch) | |
| tree | 20c3504dceafc09b5b051c393e4b35c95e3e1c45 /llvm/lib/Transforms/Scalar/Reassociate.cpp | |
| parent | 21e22dbeb7d185907a99e0d3a8ea6429e52b8b9d (diff) | |
| download | llvm-bfb07fb562a80637dc3ba3bb4ca2f44ab21e6612.zip llvm-bfb07fb562a80637dc3ba3bb4ca2f44ab21e6612.tar.gz llvm-bfb07fb562a80637dc3ba3bb4ca2f44ab21e6612.tar.bz2 | |
Remove a dangling reference to a deleted instruction. Fixes PR13185!
llvm-svn: 159096
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index 2b0d406..b572f4e 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -1478,6 +1478,7 @@ void Reassociate::EraseInst(Instruction *I) { SmallVector<Value*, 8> Ops(I->op_begin(), I->op_end()); // Erase the dead instruction. ValueRankMap.erase(I); + RedoInsts.remove(I); I->eraseFromParent(); // Optimize its operands. SmallPtrSet<Instruction *, 8> Visited; // Detect self-referential nodes. |
