projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b9c959
)
Change this code to a form about which VC++ reportedly isn't unhappy.
author
Dan Gohman
<gohman@apple.com>
Fri, 26 Jun 2009 00:35:12 +0000
(
00:35
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 26 Jun 2009 00:35:12 +0000
(
00:35
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74243
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopRotation.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopRotation.cpp
b/lib/Transforms/Scalar/LoopRotation.cpp
index ff40e4820c00275cea024a1a857e4ec807e234aa..7a24b35a4077e2ac8f33a97492d23c17e0484311 100644
(file)
--- 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)