mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-26 16:05:54 +00:00
Add curly braces to workaround an MSVC bug.
MSVC can't parse this pattern for range-based for loops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222491 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c91f34ae54
commit
0c0661c7dd
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user