summaryrefslogtreecommitdiffstats
path: root/clang/lib/Edit
diff options
context:
space:
mode:
authorDavid Tweed <david.tweed@arm.com>2013-12-11 13:39:46 +0000
committerDavid Tweed <david.tweed@arm.com>2013-12-11 13:39:46 +0000
commite1468322eb41cf2b816860a9a89e6ed26f977f49 (patch)
tree7eae5823a735d8f4a2daa86bc8bb503ff4bc30e8 /clang/lib/Edit
parentf403efc3bd6e58ec97497e45a8fdbaf62fac6b3b (diff)
downloadbcm5719-llvm-e1468322eb41cf2b816860a9a89e6ed26f977f49.tar.gz
bcm5719-llvm-e1468322eb41cf2b816860a9a89e6ed26f977f49.zip
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! llvm-svn: 197036
Diffstat (limited to 'clang/lib/Edit')
-rw-r--r--clang/lib/Edit/RewriteObjCFoundationAPI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
index f4206fbd8f4..879c17aaabf 100644
--- a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud