summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorGuy Benyei <guy.benyei@intel.com>2012-12-18 14:38:23 +0000
committerGuy Benyei <guy.benyei@intel.com>2012-12-18 14:38:23 +0000
commitd8a08ea98d974b8efa200abd760dddb995425959 (patch)
treeeb936c36e2ab3988498b0f195230212f032f4e32 /clang/lib/Parse/ParseExpr.cpp
parent11169dded0cbb723aa7534670e7cd24873635ffa (diff)
downloadbcm5719-llvm-d8a08ea98d974b8efa200abd760dddb995425959.tar.gz
bcm5719-llvm-d8a08ea98d974b8efa200abd760dddb995425959.zip
Re-commit r170428 changes with Linux style file endings.
Add OpenCL images as clang builtin types. llvm-svn: 170432
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 14980ee994f..b7705f8c0d3 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -1078,7 +1078,13 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression,
case tok::kw_void:
case tok::kw_typename:
case tok::kw_typeof:
- case tok::kw___vector: {
+ case tok::kw___vector:
+ case tok::kw_image1d_t:
+ case tok::kw_image1d_array_t:
+ case tok::kw_image1d_buffer_t:
+ case tok::kw_image2d_t:
+ case tok::kw_image2d_array_t:
+ case tok::kw_image3d_t: {
if (!getLangOpts().CPlusPlus) {
Diag(Tok, diag::err_expected_expression);
return ExprError();
OpenPOWER on IntegriCloud