From 2c44f4663c11135e794a30316dee7328979baf5d Mon Sep 17 00:00:00 2001 From: Arpith Chacko Jacob Date: Wed, 25 Jan 2017 11:44:35 +0000 Subject: [OpenMP] Support for thread_limit-clause on the 'target teams' directive. The thread_limit-clause on the combined directive applies to the 'teams' region of this construct. We modify the ThreadLimitClause class to capture the clause expression within the 'target' region. Reviewers: ABataev Differential Revision: https://reviews.llvm.org/D29087 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293049 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/StmtProfile.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/AST/StmtProfile.cpp') diff --git a/lib/AST/StmtProfile.cpp b/lib/AST/StmtProfile.cpp index b12258016d..49e43de638 100644 --- a/lib/AST/StmtProfile.cpp +++ b/lib/AST/StmtProfile.cpp @@ -503,6 +503,7 @@ void OMPClauseProfiler::VisitOMPNumTeamsClause(const OMPNumTeamsClause *C) { } void OMPClauseProfiler::VisitOMPThreadLimitClause( const OMPThreadLimitClause *C) { + VistOMPClauseWithPreInit(C); if (C->getThreadLimit()) Profiler->VisitStmt(C->getThreadLimit()); } -- cgit v1.2.1