Add curly braces to workaround an MSVC bug.

MSVC can't parse this pattern for range-based for loops.

llvm-svn: 222491
This commit is contained in:
Zachary Turner 2014-11-21 01:19:09 +00:00
parent ebd1ef82ad
commit 8325a5c6f8
1 changed files with 3 additions and 1 deletions

View File

@ -1178,8 +1178,10 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
}
// Check that all instructions have their parent pointers set up correctly.
for (auto &I: BB)
for (auto &I : BB)
{
Assert(I.getParent() == &BB, "Instruction has bogus parent pointer!");
}
}
void Verifier::visitTerminatorInst(TerminatorInst &I) {