From: Dan Gohman Date: Fri, 26 Jun 2009 00:35:12 +0000 (+0000) Subject: Change this code to a form about which VC++ reportedly isn't unhappy. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e1047fbb9718aef2dca9e7dd7949f2d6940b7ec7;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp index ff40e4820c0..7a24b35a407 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(I); ++I) { + (PN = dyn_cast(I)); ++I) { // There is already one incoming value from original pre-header block. if (PN->getBasicBlockIndex(OrigPreHeader) != -1)