workaround for windows byval codegen bug?

Hello,

I just filed https://bugs.llvm.org/show_bug.cgi?id=34952 against 5.0.0 - incorrect code generated for windows when using byval parameters.

  • Does anyone know if this is already fixed in master?
  • Is there a workaround?