]> granicus.if.org Git - clang/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212599 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 5a0e97443506f289245679896962aaaa308c3049..fb5a834783e26394f79998db0ddad6f78e806228 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 5e7d0b8284ce410238bf1909406b90b68be60f52..935dff500f0f2619734d40505a19c1a5b0b5ae57 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;
 }