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:
Aaron Ballman 2014-04-16 11:15:57 +00:00
parent eacd996daf
commit 58ce7f24cd
1 changed files with 2 additions and 1 deletions

View File

@ -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()));
}
}
}
}