diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-14 17:55:01 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-14 17:55:01 +0000 |
commit | 3fea643fb427e72907b7a40e940d7949d1d57e76 (patch) | |
tree | 206d1d2671fe6c94a8b2013b765c9d8312cb5f7b /lib | |
parent | 91d49f5ba1374df9db98b6ee45402ddaa84d08b0 (diff) | |
download | llvm-3fea643fb427e72907b7a40e940d7949d1d57e76.tar.gz llvm-3fea643fb427e72907b7a40e940d7949d1d57e76.tar.bz2 llvm-3fea643fb427e72907b7a40e940d7949d1d57e76.tar.xz |
Fix uninitialized use of the Changed variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index ccb25f05a6..5bbc8322bc 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1747,6 +1747,7 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) { SE = &getAnalysis<ScalarEvolution>(); TD = &getAnalysis<TargetData>(); UIntPtrTy = TD->getIntPtrType(); + Changed = false; // Find all uses of induction variables in this loop, and catagorize // them by stride. Start by finding all of the PHI nodes in the header for @@ -1831,6 +1832,7 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) { SE->deleteValueFromRecords(PN); PN->replaceAllUsesWith(UndefValue::get(PN->getType())); DeadInsts.insert(PN); + Changed = true; break; } } |