[llvm-commits] [llvm] r74243 - /llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp
Dan Gohman
gohman at apple.com
Thu Jun 25 17:35:13 PDT 2009
Author: djg
Date: Thu Jun 25 19:35:12 2009
New Revision: 74243
URL: http://llvm.org/viewvc/llvm-project?rev=74243&view=rev
Log:
Change this code to a form about which VC++ reportedly isn't unhappy.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp?rev=74243&r1=74242&r2=74243&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp Thu Jun 25 19:35:12 2009
@@ -371,8 +371,9 @@
/// 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)
More information about the llvm-commits
mailing list