yxsamliu wrote: Could you add a small non-RDC CodeGen test that accesses a shared struct and fixed-size array and checks their emitted types and shared address space? A HIP test would also help, since this handler affects HIP too. https://github.com/llvm/llvm-project/pull/183879