From 38d524a554d75bbdcf98a17b2c6544dcefe10bb7 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 22 Jan 2016 15:49:53 +0000 Subject: [PATCH] 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 --- include/clang/AST/RecursiveASTVisitor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.50.1