summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitac3b5382b8099d4a3bedf07be605b9175764aa46 (patch)
tree296651fee397a5e0c3f7e0f4e39879d6a29c6f74 /llvm/lib
parent7eaf50ecac19b04294b8feec38f248d298d9d6ea (diff)
downloadbcm5719-llvm-ac3b5382b8099d4a3bedf07be605b9175764aa46.tar.gz
bcm5719-llvm-ac3b5382b8099d4a3bedf07be605b9175764aa46.zip
Change this code to a form about which VC++ reportedly isn't unhappy.
llvm-svn: 74243
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopRotation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp
index ff40e4820c0..7a24b35a407 100644
--- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud