summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseTentative.cpp
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2019-05-22 13:12:20 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2019-05-22 13:12:20 +0000
commite518bb43119bb194c70f57cb99e2b73933f71d33 (patch)
tree9a1aef940abebf3c7e9fb6bf977a74ac25e36699 /clang/lib/Parse/ParseTentative.cpp
parent7c72ca012d563415d7a36737d4c903f7ec988679 (diff)
downloadbcm5719-llvm-e518bb43119bb194c70f57cb99e2b73933f71d33.tar.gz
bcm5719-llvm-e518bb43119bb194c70f57cb99e2b73933f71d33.zip
[OpenCL] Support pipe keyword in C++ mode
Support the OpenCL C pipe feature in C++ for OpenCL mode, to preserve backwards compatibility with OpenCL C. Various changes had to be made in Parse and Sema to enable pipe-specific diagnostics, so enable a SemaOpenCL test for C++. Differential Revision: https://reviews.llvm.org/D62181 llvm-svn: 361382
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r--clang/lib/Parse/ParseTentative.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp
index e97a8e5b544..13d43d5e68e 100644
--- a/clang/lib/Parse/ParseTentative.cpp
+++ b/clang/lib/Parse/ParseTentative.cpp
@@ -1461,6 +1461,8 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult,
case tok::kw___read_only:
case tok::kw___write_only:
case tok::kw___read_write:
+ // OpenCL pipe
+ case tok::kw_pipe:
// GNU
case tok::kw_restrict:
OpenPOWER on IntegriCloud