[OPENMP] Fixed incompatibility in [Data]RecursiveASTVisitor::TraverseOMPExecutableDir...
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 9 Jul 2014 09:33:29 +0000 (09:33 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 9 Jul 2014 09:33:29 +0000 (09:33 +0000)
llvm-svn: 212599

clang/include/clang/AST/DataRecursiveASTVisitor.h
clang/include/clang/AST/RecursiveASTVisitor.h

index 5a0e974..fb5a834 100644 (file)
@@ -2273,8 +2273,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {})
 template <typename Derived>
 bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
     OMPExecutableDirective *S) {
-  for (auto *C : S->clauses())
+  for (auto *C : S->clauses()) {
     TRY_TO(TraverseOMPClause(C));
+  }
   return true;
 }
 
index 5e7d0b8..935dff5 100644 (file)
@@ -2295,8 +2295,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {})
 template <typename Derived>
 bool RecursiveASTVisitor<Derived>::TraverseOMPExecutableDirective(
     OMPExecutableDirective *S) {
-  for (auto *C : S->clauses())
+  for (auto *C : S->clauses()) {
     TRY_TO(TraverseOMPClause(C));
+  }
   return true;
 }