diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-24 06:46:57 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-24 06:46:57 +0000 |
commit | 459dec0ca2a765fc7fa6bc24b662a5e10df18e97 (patch) | |
tree | eacd841808eb3ec53909056748ac2af85fcbd208 /clang/lib/Parse/ParseOpenMP.cpp | |
parent | 65f8732c146f92a6960f352e12959b613d32e848 (diff) | |
download | bcm5719-llvm-459dec0ca2a765fc7fa6bc24b662a5e10df18e97.tar.gz bcm5719-llvm-459dec0ca2a765fc7fa6bc24b662a5e10df18e97.zip |
[OPENMP] Initial parsing and sema analysis for clause 'capture' in 'atomic' directive.
llvm-svn: 213842
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r-- | clang/lib/Parse/ParseOpenMP.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp index 024b1abe37c..6c8fd640f97 100644 --- a/clang/lib/Parse/ParseOpenMP.cpp +++ b/clang/lib/Parse/ParseOpenMP.cpp @@ -343,7 +343,7 @@ bool Parser::ParseOpenMPSimpleVarList(OpenMPDirectiveKind Kind, /// lastprivate-clause | reduction-clause | proc_bind-clause | /// schedule-clause | copyin-clause | copyprivate-clause | untied-clause | /// mergeable-clause | flush-clause | read-clause | write-clause | -/// update-clause +/// update-clause | capture-clause /// OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, OpenMPClauseKind CKind, bool FirstClause) { @@ -412,6 +412,7 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind, case OMPC_read: case OMPC_write: case OMPC_update: + case OMPC_capture: // OpenMP [2.7.1, Restrictions, p. 9] // Only one ordered clause can appear on a loop directive. // OpenMP [2.7.1, Restrictions, C/C++, p. 4] |