diff options
author | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 11:28:18 +0000 |
---|---|---|
committer | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-25 11:28:18 +0000 |
commit | bc126344e1a38e96189a74ef0942c0ba7731a363 (patch) | |
tree | e601eb3a51538cb0798a193086f413a7ee564e97 /clang/lib/Serialization/ASTReaderStmt.cpp | |
parent | 46897a46eefd346143bd461e100821dfcbb88631 (diff) | |
download | bcm5719-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.cpp | 1 |
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()); } |