summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterStmt.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-10-02 16:32:39 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-10-02 16:32:39 +0000
commit931e19bf5132e047e2da79061a011867b22ff12e (patch)
tree6d17ca50a16c88473c92d5098f3e5ca17699a32e /clang/lib/Serialization/ASTWriterStmt.cpp
parentf91dc28b7b64e2ad75ccb21d66db3ff5f8b780d4 (diff)
downloadbcm5719-llvm-931e19bf5132e047e2da79061a011867b22ff12e.tar.gz
bcm5719-llvm-931e19bf5132e047e2da79061a011867b22ff12e.zip
[OPENMP] Capture argument of `device` clause for target-based
directives. The argument of the `device` clause in target-based executable directives must be captured to support codegen for the `target` directives with the `depend` clauses. llvm-svn: 314686
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 1bc64b6a176..15d24257139 100644
--- a/clang/lib/Serialization/ASTWriterStmt.cpp
+++ b/clang/lib/Serialization/ASTWriterStmt.cpp
@@ -2102,6 +2102,7 @@ void OMPClauseWriter::VisitOMPDependClause(OMPDependClause *C) {
}
void OMPClauseWriter::VisitOMPDeviceClause(OMPDeviceClause *C) {
+ VisitOMPClauseWithPreInit(C);
Record.AddStmt(C->getDevice());
Record.AddSourceLocation(C->getLParenLoc());
}
OpenPOWER on IntegriCloud