summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-10-16 18:09:37 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-10-16 18:09:37 +0000
commit31ba47646ba40b7892492bb227d85de0d6733e07 (patch)
tree3ac0882ad64f4e4b95c95a8bea50ad098c9da4bc /clang/lib/AST/StmtProfile.cpp
parent8cc6d42e8d6c0c133e4d5d46e918e5e2ae0781c6 (diff)
downloadbcm5719-llvm-31ba47646ba40b7892492bb227d85de0d6733e07.tar.gz
bcm5719-llvm-31ba47646ba40b7892492bb227d85de0d6733e07.zip
[OPENMP]Allow priority clause in combined task-based directives.
The expression of the priority clause must be captured in the combined task-based directives, like 'parallel master taskloop' directive. llvm-svn: 375026
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index e536abfe35d..1cc36623d45 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -737,6 +737,7 @@ void OMPClauseProfiler::VisitOMPThreadLimitClause(
Profiler->VisitStmt(C->getThreadLimit());
}
void OMPClauseProfiler::VisitOMPPriorityClause(const OMPPriorityClause *C) {
+ VistOMPClauseWithPreInit(C);
if (C->getPriority())
Profiler->VisitStmt(C->getPriority());
}
OpenPOWER on IntegriCloud