Is this a codegen bug in ptx kernels?

I think I found a bug in the code generated for nvptx kernels this week. It is related to passing structs to kernels as a function argument.

I already posted it in the tracking issue, but I believe it's quite invisible as the tracking issue is so old.

Can anyone help me confirm that this is in fact a bug, and that I am not misunderstanding something.

cc @RDambrosio016