From: Alexey Bataev Date: Wed, 9 Jul 2014 09:33:29 +0000 (+0000) Subject: [OPENMP] Fixed incompatibility in [Data]RecursiveASTVisitor::TraverseOMPExecutableDir... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75fe0fd91c66b41e1175855922d3e1be7678d2bf;p=clang [OPENMP] Fixed incompatibility in [Data]RecursiveASTVisitor::TraverseOMPExecutableDirective method with MSVC for range-based loops. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212599 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DataRecursiveASTVisitor.h b/include/clang/AST/DataRecursiveASTVisitor.h index 5a0e974435..fb5a834783 100644 --- a/include/clang/AST/DataRecursiveASTVisitor.h +++ b/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/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index 5e7d0b8284..935dff500f 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/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; }