Add curly braces to workaround an MSVC bug.
authorZachary Turner <zturner@google.com>
Fri, 21 Nov 2014 01:19:09 +0000 (01:19 +0000)
committerZachary Turner <zturner@google.com>
Fri, 21 Nov 2014 01:19:09 +0000 (01:19 +0000)
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

lib/IR/Verifier.cpp

index 05600155a8c390aaebb528de305d77e063b07701..9698dbd77fdfa567a17792d2be42efa0b120f294 100644 (file)
@@ -1178,8 +1178,10 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
   }
 
   // Check that all instructions have their parent pointers set up correctly.
   }
 
   // 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!");
     Assert(I.getParent() == &BB, "Instruction has bogus parent pointer!");
+  }
 }
 
 void Verifier::visitTerminatorInst(TerminatorInst &I) {
 }
 
 void Verifier::visitTerminatorInst(TerminatorInst &I) {