summaryrefslogtreecommitdiff
path: root/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-05-16 21:05:39 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-05-16 21:05:39 +0000
commit9c7228e582d5c245ee67aeb2cfc646a0f5a1eaf9 (patch)
treebd29b1ee523f00da1faea8df6662117073227d8c /lib/AST/ExprConstant.cpp
parent074a8d3deaca2f135b98669c173bc3d97db670e4 (diff)
downloadclang-9c7228e582d5c245ee67aeb2cfc646a0f5a1eaf9.tar.gz
clang-9c7228e582d5c245ee67aeb2cfc646a0f5a1eaf9.tar.bz2
clang-9c7228e582d5c245ee67aeb2cfc646a0f5a1eaf9.tar.xz
Merging r197036:
------------------------------------------------------------------------ r197036 | david.tweed | 2013-12-11 08:39:46 -0500 (Wed, 11 Dec 2013) | 8 lines Add front-end infrastructure now address space casts are in LLVM IR. With the introduction of explicit address space casts into LLVM, there's a need to provide a new cast kind the front-end can create for C/OpenCL/CUDA and code to produce address space casts from those kinds when appropriate. Patch by Michele Scandale! ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@209029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r--lib/AST/ExprConstant.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp
index 4cac4fab84..a0ae5b6f0d 100644
--- a/lib/AST/ExprConstant.cpp
+++ b/lib/AST/ExprConstant.cpp
@@ -7109,6 +7109,7 @@ bool IntExprEvaluator::VisitCastExpr(const CastExpr *E) {
case CK_BuiltinFnToFnPtr:
case CK_ZeroToOCLEvent:
case CK_NonAtomicToAtomic:
+ case CK_AddressSpaceConversion:
llvm_unreachable("invalid cast kind for integral value");
case CK_BitCast:
@@ -7581,6 +7582,7 @@ bool ComplexExprEvaluator::VisitCastExpr(const CastExpr *E) {
case CK_BuiltinFnToFnPtr:
case CK_ZeroToOCLEvent:
case CK_NonAtomicToAtomic:
+ case CK_AddressSpaceConversion:
llvm_unreachable("invalid cast kind for complex value");
case CK_LValueToRValue: