From: Zachary Turner Date: Fri, 21 Nov 2014 01:19:09 +0000 (+0000) Subject: Add curly braces to workaround an MSVC bug. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8325a5c6f8561243411ce8436e30c85e1c97ceab;p=platform%2Fupstream%2Fllvm.git Add curly braces to workaround an MSVC bug. MSVC can't parse this pattern for range-based for loops. llvm-svn: 222491 --- diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 0560015..9698dbd 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -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) {