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 | 61eee0ca33b29e102f11bab77c8b74cc00e2392b (patch) | |
tree | 6d15da9dbb7e38437454db0f20493b479bc4eedb /lib/AST/ItaniumMangle.cpp | |
parent | 9198126067a447f8aaccf9fff09be294c8bcb81e (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ItaniumMangle.cpp')
-rw-r--r-- | lib/AST/ItaniumMangle.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/ItaniumMangle.cpp b/lib/AST/ItaniumMangle.cpp index aad6e9c48d..53c204562a 100644 --- a/lib/AST/ItaniumMangle.cpp +++ b/lib/AST/ItaniumMangle.cpp @@ -2093,7 +2093,9 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity) { case Expr::VAArgExprClass: case Expr::CXXUuidofExprClass: case Expr::CXXNoexceptExprClass: - case Expr::CUDAKernelCallExprClass: { + case Expr::CUDAKernelCallExprClass: + case Expr::AsTypeExprClass: + { // As bad as this diagnostic is, it's better than crashing. Diagnostic &Diags = Context.getDiags(); unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error, |