]> granicus.if.org Git - clang/commitdiff
try to fix the MSVC build
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Jun 2016 05:48:59 +0000 (05:48 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Jun 2016 05:48:59 +0000 (05:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273651 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/RecursiveASTVisitor.h

index 5bec82ef1914b5d187a78f6313e361790c3a4171..468d8922992ed5701d849dae732efba822093d40 100644 (file)
@@ -1831,8 +1831,9 @@ bool RecursiveASTVisitor<Derived>::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<CXXConstructorDecl>(D)) {