From: David Majnemer Date: Fri, 24 Jun 2016 05:48:59 +0000 (+0000) Subject: try to fix the MSVC build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17a752beb9a8c15a8667569bae759590264bcc91;p=clang try to fix the MSVC build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273651 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index 5bec82ef19..468d892299 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -1831,8 +1831,9 @@ bool RecursiveASTVisitor::TraverseFunctionHelper(FunctionDecl *D) { // if the traverser is visiting implicit code. Parameter variable // declarations do not have valid TypeSourceInfo, so to visit them // we need to traverse the declarations explicitly. - for (ParmVarDecl *Parameter : D->parameters()) + for (ParmVarDecl *Parameter : D->parameters()) { TRY_TO(TraverseDecl(Parameter)); + } } if (CXXConstructorDecl *Ctor = dyn_cast(D)) {