diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-03-11 19:24:49 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-03-11 19:24:49 +0000 |
commit | e190dee7a5488f6314f74accd266c4abf36c2c4b (patch) | |
tree | cf65c2f82ba42c767a6ea8308c1e7128afec169b /clang/lib/Sema/SemaChecking.cpp | |
parent | 012284162613e4227042ea27d8426c119dad64a0 (diff) | |
download | bcm5719-llvm-e190dee7a5488f6314f74accd266c4abf36c2c4b.tar.gz bcm5719-llvm-e190dee7a5488f6314f74accd266c4abf36c2c4b.zip |
Add support for the OpenCL vec_step operator, by generalising and
extending the existing support for sizeof and alignof. Original
patch by Guy Benyei.
llvm-svn: 127475
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 10773309a3b..4cdbf5375e6 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -3038,7 +3038,7 @@ void AnalyzeImplicitConversions(Sema &S, Expr *OrigE, SourceLocation CC) { if (isa<StmtExpr>(E)) return; // Don't descend into unevaluated contexts. - if (isa<SizeOfAlignOfExpr>(E)) return; + if (isa<UnaryExprOrTypeTraitExpr>(E)) return; // Now just recurse over the expression's children. CC = E->getExprLoc(); |