diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-05 01:30:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-05 01:30:11 +0000 |
commit | 9a59fbb89606aaefb27f6fe07dcb7c188bf1b3cd (patch) | |
tree | 2d8008bd94bad57fcb1c949aa8089788f5f26bc3 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | 68ee736694c9e485de6729ec657f5a993e5f1027 (diff) |
Make sure to clean CastedPointers after casts are potentially deleted.
This fixes LSR crashes on 301.apsi, 191.fma3d, and 189.lucas
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 0326a143df..19e8840320 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -106,7 +106,6 @@ namespace { for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I) runOnLoop(*I); - CastedPointers.clear(); return Changed; } @@ -672,6 +671,7 @@ void LoopStrengthReduce::runOnLoop(Loop *L) { DeleteTriviallyDeadInstructions(DeadInsts); } + CastedPointers.clear(); IVUsesByStride.clear(); return; } |