diff options
author | Tanya Lattner <tonic@nondot.org> | 2011-06-04 00:47:47 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2011-06-04 00:47:47 +0000 |
commit | 55808c1026bdce3f8f8e534a64bc32afe8a23c84 (patch) | |
tree | 71978e2d817b43fedb39f1f836bd57f6a740e638 /clang/lib/AST/ExprClassification.cpp | |
parent | 27b82f2f91c47ba26189c69337469c43ebb071eb (diff) | |
download | bcm5719-llvm-55808c1026bdce3f8f8e534a64bc32afe8a23c84.tar.gz bcm5719-llvm-55808c1026bdce3f8f8e534a64bc32afe8a23c84.zip |
Add support for builtin astype:
__builtin_astype(): Used to reinterpreted as another data type of the same size using for both scalar and vector data types.
Added test case.
llvm-svn: 132612
Diffstat (limited to 'clang/lib/AST/ExprClassification.cpp')
-rw-r--r-- | clang/lib/AST/ExprClassification.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp index 7e4d06ac307..d177cb5cbc9 100644 --- a/clang/lib/AST/ExprClassification.cpp +++ b/clang/lib/AST/ExprClassification.cpp @@ -161,6 +161,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { case Expr::InitListExprClass: case Expr::SizeOfPackExprClass: case Expr::SubstNonTypeTemplateParmPackExprClass: + case Expr::AsTypeExprClass: return Cl::CL_PRValue; // Next come the complicated cases. |