summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-10-14 19:29:52 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-10-14 19:29:52 +0000
commitb9c55e2760b1be461f05a10ca92696b3381036d2 (patch)
tree69ed3ffba50a545d357824a3164aaf22fb744ccb /clang/lib/AST/StmtProfile.cpp
parent6362a2168bb79e0d9a53d775c9814c58099d98aa (diff)
downloadbcm5719-llvm-b9c55e2760b1be461f05a10ca92696b3381036d2.tar.gz
bcm5719-llvm-b9c55e2760b1be461f05a10ca92696b3381036d2.zip
[OPNEMP]Allow grainsize clause in combined task-based directives.
The expression of the grainsize clause must be captured in the combined task-based directives, like 'parallel master taskloop' directive. llvm-svn: 374810
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 efc64af22aa..6c65f8a1d0f 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -740,6 +740,7 @@ void OMPClauseProfiler::VisitOMPPriorityClause(const OMPPriorityClause *C) {
Profiler->VisitStmt(C->getPriority());
}
void OMPClauseProfiler::VisitOMPGrainsizeClause(const OMPGrainsizeClause *C) {
+ VistOMPClauseWithPreInit(C);
if (C->getGrainsize())
Profiler->VisitStmt(C->getGrainsize());
}
OpenPOWER on IntegriCloud