diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-01 03:33:17 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-01 03:33:17 +0000 |
commit | b78ca83d3b9f86efea1b5d9e618e8dd1c27de2da (patch) | |
tree | f9316bcc26eade320af03bf566c47afce3c7f381 /clang/lib/Serialization/ASTWriterStmt.cpp | |
parent | 506cf09c6f641b7c06eb3b6bba8e2c388a27c144 (diff) | |
download | bcm5719-llvm-b78ca83d3b9f86efea1b5d9e618e8dd1c27de2da.tar.gz bcm5719-llvm-b78ca83d3b9f86efea1b5d9e618e8dd1c27de2da.zip |
[OPENMP] Sema analysis for 'atomic capture' construct.
Added sema checks for forms of expressions/statements allowed under control of 'atomic capture' directive + generation of helper objects for future codegen.
llvm-svn: 233785
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriterStmt.cpp b/clang/lib/Serialization/ASTWriterStmt.cpp index daebc52c96b..97ed06ff638 100644 --- a/clang/lib/Serialization/ASTWriterStmt.cpp +++ b/clang/lib/Serialization/ASTWriterStmt.cpp @@ -2010,6 +2010,7 @@ void ASTStmtWriter::VisitOMPAtomicDirective(OMPAtomicDirective *D) { Writer.AddStmt(D->getExpr()); Writer.AddStmt(D->getUpdateExpr()); Record.push_back(D->isXLHSInRHSPart() ? 1 : 0); + Record.push_back(D->isPostfixUpdate() ? 1 : 0); Code = serialization::STMT_OMP_ATOMIC_DIRECTIVE; } |