mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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
This commit is contained in:
@@ -371,8 +371,9 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) {
|
|||||||
/// PHINode may not have an entry for the original pre-header.
|
/// PHINode may not have an entry for the original pre-header.
|
||||||
void LoopRotate::updateExitBlock() {
|
void LoopRotate::updateExitBlock() {
|
||||||
|
|
||||||
|
PHINode *PN;
|
||||||
for (BasicBlock::iterator I = Exit->begin();
|
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.
|
// There is already one incoming value from original pre-header block.
|
||||||
if (PN->getBasicBlockIndex(OrigPreHeader) != -1)
|
if (PN->getBasicBlockIndex(OrigPreHeader) != -1)
|
||||||
|
Reference in New Issue
Block a user