mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Pull assignment out of for loop conditional in order for this to
compile under windows. Patch contributed by Paolo Invernizzi! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1224,8 +1224,8 @@ void CWriter::printPHICopiesForSuccessors(BasicBlock *CurBlock,
|
||||
unsigned Indent) {
|
||||
for (succ_iterator SI = succ_begin(CurBlock), E = succ_end(CurBlock);
|
||||
SI != E; ++SI)
|
||||
for (BasicBlock::iterator I = SI->begin();
|
||||
PHINode *PN = dyn_cast<PHINode>(I); ++I) {
|
||||
for (BasicBlock::iterator I = SI->begin(); isa<PHINode>(I); ++I) {
|
||||
PHINode *PN = cast<PHINode>(I);
|
||||
// now we have to do the printing
|
||||
Out << std::string(Indent, ' ');
|
||||
Out << " " << Mang->getValueName(I) << "__PHI_TEMPORARY = ";
|
||||
|
Reference in New Issue
Block a user