summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterStmt.cpp
diff options
context:
space:
mode:
authorArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 11:44:35 +0000
committerArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 11:44:35 +0000
commit7ecc0b7f3d97df07f9d8ea794dd239b03e443179 (patch)
tree6936742effb8a8ec369d76535d6835d76db12593 /clang/lib/Serialization/ASTWriterStmt.cpp
parentbc126344e1a38e96189a74ef0942c0ba7731a363 (diff)
downloadbcm5719-llvm-7ecc0b7f3d97df07f9d8ea794dd239b03e443179.tar.gz
bcm5719-llvm-7ecc0b7f3d97df07f9d8ea794dd239b03e443179.zip
[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 llvm-svn: 293049
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterStmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp
index 5d9080ea881..9589914a813 100644
--- a/clang/lib/Serialization/ASTWriterStmt.cpp
+++ b/clang/lib/Serialization/ASTWriterStmt.cpp
@@ -2073,6 +2073,7 @@ void OMPClauseWriter::VisitOMPNumTeamsClause(OMPNumTeamsClause *C) {
}
void OMPClauseWriter::VisitOMPThreadLimitClause(OMPThreadLimitClause *C) {
+ VisitOMPClauseWithPreInit(C);
Record.AddStmt(C->getThreadLimit());
Record.AddSourceLocation(C->getLParenLoc());
}
OpenPOWER on IntegriCloud