summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-10-14 20:44:34 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-10-14 20:44:34 +0000
commitd88c7dec2187a68109f3c020cc86685e7b2183d5 (patch)
tree079d5455b72c031ef8c2cdbda12b8df4f887e785 /clang/lib/AST/StmtProfile.cpp
parentbfaa1082e126d922efbf5364f469f23ea1598da8 (diff)
downloadbcm5719-llvm-d88c7dec2187a68109f3c020cc86685e7b2183d5.tar.gz
bcm5719-llvm-d88c7dec2187a68109f3c020cc86685e7b2183d5.zip
[OPNEMP]Allow num_tasks clause in combined task-based directives.
The expression of the num_tasks clause must be captured in the combined task-based directives, like 'parallel master taskloop' directive. llvm-svn: 374819
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 6c65f8a1d0f..9c19305a7da 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -745,6 +745,7 @@ void OMPClauseProfiler::VisitOMPGrainsizeClause(const OMPGrainsizeClause *C) {
Profiler->VisitStmt(C->getGrainsize());
}
void OMPClauseProfiler::VisitOMPNumTasksClause(const OMPNumTasksClause *C) {
+ VistOMPClauseWithPreInit(C);
if (C->getNumTasks())
Profiler->VisitStmt(C->getNumTasks());
}
OpenPOWER on IntegriCloud