forked from OSchip/llvm-project
Fixing a compile error in debug versions of MSVC. It seems that the range-based for loop is confused by the DEBUG macro expansion unless a compound statement is used.
llvm-svn: 206376
This commit is contained in:
parent
eacd996daf
commit
58ce7f24cd
|
@ -492,8 +492,9 @@ static void printReachingDef(const InstrToInstrs *ColorOpToReachedUses,
|
|||
DEBUG(dbgs() << "Def:\n");
|
||||
DEBUG(DefsIt.first->print(dbgs()));
|
||||
DEBUG(dbgs() << "Reachable uses:\n");
|
||||
for (const MachineInstr *MI : DefsIt.second)
|
||||
for (const MachineInstr *MI : DefsIt.second) {
|
||||
DEBUG(MI->print(dbgs()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue