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://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0c0661c7dd7a474820108e3e811ddd1d5ac2c7db;p=oota-llvm.git 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 --- diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 05600155a8c..9698dbd77fd 100644 --- a/lib/IR/Verifier.cpp +++ b/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) {