[llvm] [Transforms] Fix Coroutine transform on non-default addressspaces (PR #102096)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 23:54:45 PDT 2024
================
@@ -152,7 +152,8 @@ void Lowerer::lowerCoroNoop(IntrinsicInst *II) {
}
Builder.SetInsertPoint(II);
- auto *NoopCoroVoidPtr = Builder.CreateBitCast(NoopCoro, Int8Ptr);
+ auto *NoopCoroVoidPtr =
+ Builder.CreateAddrSpaceCast(NoopCoro, PointerType::getUnqual(C));
----------------
arsenm wrote:
You can't insert any addrspacecast you want. Really these intrinsics should be fixed to have an address space mangled pointer. We should not have any intrinsics defined with llvm_ptr_ty
https://github.com/llvm/llvm-project/pull/102096
More information about the llvm-commits
mailing list