From: Alexey Bataev Date: Wed, 9 Jul 2014 09:33:29 +0000 (+0000) Subject: [OPENMP] Fixed incompatibility in [Data]RecursiveASTVisitor::TraverseOMPExecutableDir... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e73fe94ac84c507063b6bb415f9562657c4eb133;p=platform%2Fupstream%2Fllvm.git [OPENMP] Fixed incompatibility in [Data]RecursiveASTVisitor::TraverseOMPExecutableDirective method with MSVC for range-based loops. llvm-svn: 212599 --- diff --git a/clang/include/clang/AST/DataRecursiveASTVisitor.h b/clang/include/clang/AST/DataRecursiveASTVisitor.h index 5a0e974..fb5a834 100644 --- a/clang/include/clang/AST/DataRecursiveASTVisitor.h +++ b/clang/include/clang/AST/DataRecursiveASTVisitor.h @@ -2273,8 +2273,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {}) template bool RecursiveASTVisitor::TraverseOMPExecutableDirective( OMPExecutableDirective *S) { - for (auto *C : S->clauses()) + for (auto *C : S->clauses()) { TRY_TO(TraverseOMPClause(C)); + } return true; } diff --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h index 5e7d0b8..935dff5 100644 --- a/clang/include/clang/AST/RecursiveASTVisitor.h +++ b/clang/include/clang/AST/RecursiveASTVisitor.h @@ -2295,8 +2295,9 @@ DEF_TRAVERSE_STMT(AsTypeExpr, {}) template bool RecursiveASTVisitor::TraverseOMPExecutableDirective( OMPExecutableDirective *S) { - for (auto *C : S->clauses()) + for (auto *C : S->clauses()) { TRY_TO(TraverseOMPClause(C)); + } return true; }