added addrspace(3,4)->addrspace(0) convertion to ctx->GetElementPtrInst. Appears to work now.