summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReaderStmt.cpp
diff options
context:
space:
mode:
authorArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 11:28:18 +0000
committerArpith Chacko Jacob <acjacob@us.ibm.com>2017-01-25 11:28:18 +0000
commitbc126344e1a38e96189a74ef0942c0ba7731a363 (patch)
treee601eb3a51538cb0798a193086f413a7ee564e97 /clang/lib/Serialization/ASTReaderStmt.cpp
parent46897a46eefd346143bd461e100821dfcbb88631 (diff)
downloadbcm5719-llvm-bc126344e1a38e96189a74ef0942c0ba7731a363.tar.gz
bcm5719-llvm-bc126344e1a38e96189a74ef0942c0ba7731a363.zip
[OpenMP] Support for num_teams-clause on the 'target teams' directive.
The num_teams-clause on the combined directive applies to the 'teams' region of this construct. We modify the NumTeamsClause class to capture the clause expression within the 'target' region. Reviewers: ABataev Differential Revision: https://reviews.llvm.org/D29085 llvm-svn: 293048
Diffstat (limited to 'clang/lib/Serialization/ASTReaderStmt.cpp')
-rw-r--r--clang/lib/Serialization/ASTReaderStmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderStmt.cpp b/clang/lib/Serialization/ASTReaderStmt.cpp
index 55eca5058ee..ce136bf3348 100644
--- a/clang/lib/Serialization/ASTReaderStmt.cpp
+++ b/clang/lib/Serialization/ASTReaderStmt.cpp
@@ -2300,6 +2300,7 @@ void OMPClauseReader::VisitOMPMapClause(OMPMapClause *C) {
}
void OMPClauseReader::VisitOMPNumTeamsClause(OMPNumTeamsClause *C) {
+ VisitOMPClauseWithPreInit(C);
C->setNumTeams(Reader->Record.readSubExpr());
C->setLParenLoc(Reader->ReadSourceLocation());
}
OpenPOWER on IntegriCloud