aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-26 00:35:12 +0000
committerDan Gohman <gohman@apple.com>2009-06-26 00:35:12 +0000
commit55d35657725210786411948173949cdd3d2bed16 (patch)
treeb65f4d99e84604d2c462755ec9e46f99178ed921 /lib
parent480cf741fb36762d75200ce3dbb86e99b4a066d8 (diff)
downloadexternal_llvm-55d35657725210786411948173949cdd3d2bed16.zip
external_llvm-55d35657725210786411948173949cdd3d2bed16.tar.gz
external_llvm-55d35657725210786411948173949cdd3d2bed16.tar.bz2
Change this code to a form about which VC++ reportedly isn't unhappy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/LoopRotation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp
index ff40e48..7a24b35 100644
--- a/lib/Transforms/Scalar/LoopRotation.cpp
+++ b/lib/Transforms/Scalar/LoopRotation.cpp
@@ -371,8 +371,9 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) {
/// PHINode may not have an entry for the original pre-header.
void LoopRotate::updateExitBlock() {
+ PHINode *PN;
for (BasicBlock::iterator I = Exit->begin();
- PHINode *PN = dyn_cast<PHINode>(I); ++I) {
+ (PN = dyn_cast<PHINode>(I)); ++I) {
// There is already one incoming value from original pre-header block.
if (PN->getBasicBlockIndex(OrigPreHeader) != -1)