[PATCH] Address Space Casting
Matt Arsenault
Matthew.Arsenault at amd.com
Sun Nov 10 18:15:08 PST 2013
I would like this to be in 3.4; there's plenty of time to fix it if any problems that show up before the actual release.
================
Comment at: lib/IR/AutoUpgrade.cpp:458-461
@@ +457,6 @@
+ Type *SrcTy = V->getType();
+ if (SrcTy->isPointerTy() && DestTy->isPointerTy() &&
+ SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
+ LLVMContext &Context = V->getContext();
+
+ // We have no information about target data layout, so we assume that
----------------
This won't work for vectors of pointers
http://llvm-reviews.chandlerc.com/D1401
More information about the llvm-commits
mailing list