summaryrefslogtreecommitdiff
path: root/lib/Edit/RewriteObjCFoundationAPI.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/Edit/RewriteObjCFoundationAPI.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/Edit/RewriteObjCFoundationAPI.cpp')
-rw-r--r--lib/Edit/RewriteObjCFoundationAPI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Edit/RewriteObjCFoundationAPI.cpp b/lib/Edit/RewriteObjCFoundationAPI.cpp
index f4206fbd8f..879c17aaab 100644
--- a/lib/Edit/RewriteObjCFoundationAPI.cpp
+++ b/lib/Edit/RewriteObjCFoundationAPI.cpp
@@ -1033,6 +1033,7 @@ static bool rewriteToNumericBoxedExpression(const ObjCMessageExpr *Msg,
case CK_IntegralComplexToReal:
case CK_IntegralComplexToBoolean:
case CK_AtomicToNonAtomic:
+ case CK_AddressSpaceConversion:
needsCast = true;
break;