Currently the pointer argument of lifetime intrinsics is still in address space 0. When the alloca address is not 0, there is invalid bitcast instruction.
This patch changes pointer argument of lifetime intrinsics to point to alloca address space.
Differential D31717
CodeGen: Let lifetime intrinsic use alloca address space yaxunl on Apr 5 2017, 10:46 AM. Authored by
Details Currently the pointer argument of lifetime intrinsics is still in address space 0. When the alloca address is not 0, there is invalid bitcast instruction. This patch changes pointer argument of lifetime intrinsics to point to alloca address space.
Diff Detail
Event TimelineComment Actions I did not know you already have a patch. Can you add reviewers to it? The only difference is that I added AllocaInt8PtrTy to CodeGenModule and a lit test for non-zero alloca addr space. I can rebase my patch on top of yours. Or I can drop this patch and add the lit test to your patch. Comment Actions I had the part for non-0 alloca too, but not sure if I posted it. It's in my GitHub branch Comment Actions For that one we'd better stick to https://reviews.llvm.org/D31404 since the review is almost done. I will acknowledge your contribution and others in the commit message. Comment Actions LGTM
|