From: Nico Weber Date: Fri, 22 Jan 2016 15:49:53 +0000 (+0000) Subject: Try to pacify MSVC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38d524a554d75bbdcf98a17b2c6544dcefe10bb7;p=clang Try to pacify MSVC. I'm not sure why it needs these braces, but they help locally. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258505 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index 0b89a963e3..91b672b02f 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -811,8 +811,9 @@ bool RecursiveASTVisitor::TraverseConstructorInitializer( TRY_TO(TraverseStmt(Init->getInit())); if (Init->getNumArrayIndices() && getDerived().shouldVisitImplicitCode()) - for (VarDecl *VD : Init->getArrayIndexes()) + for (VarDecl *VD : Init->getArrayIndexes()) { TRY_TO(TraverseDecl(VD)); + } return true; }