summaryrefslogtreecommitdiff
path: root/include/clang/AST/RecursiveASTVisitor.h
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-10-15 19:37:05 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-10-15 19:37:05 +0000
commitbd6b181280fd87f99e3b096264683713465ccac7 (patch)
treeaab81b74edd5058ab5135c284c6db5af9bda40a3 /include/clang/AST/RecursiveASTVisitor.h
parentcf4a18c6aa180512c2f9b2a88450492b9c89c3c8 (diff)
downloadclang-bd6b181280fd87f99e3b096264683713465ccac7.tar.gz
[OPENMP]Allow final clause in combined task-based directives.
The condition of the final clause must be captured in the combined task-based directives, like 'parallel master taskloop' directive. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/RecursiveASTVisitor.h')
-rw-r--r--include/clang/AST/RecursiveASTVisitor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h
index 3a21034057..1de458dccb 100644
--- a/include/clang/AST/RecursiveASTVisitor.h
+++ b/include/clang/AST/RecursiveASTVisitor.h
@@ -2906,6 +2906,7 @@ bool RecursiveASTVisitor<Derived>::VisitOMPIfClause(OMPIfClause *C) {
template <typename Derived>
bool RecursiveASTVisitor<Derived>::VisitOMPFinalClause(OMPFinalClause *C) {
+ TRY_TO(VisitOMPClauseWithPreInit(C));
TRY_TO(TraverseStmt(C->getCondition()));
return true;
}