rjmccall added a comment.

This seems backwards.  Clang knows what the actual ABI alignment of the C type 
is, and it doesn't have to match the alignment of the IR type that IRGen 
produces.  It's the actual C ABI alignment that's supposed to affect the 
calling convention, so there needs to be some way to specify the C ABI 
alignment on the parameter in IR.  That may mean using `byval`, which can be 
given an explicit alignment.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55067/new/

https://reviews.llvm.org/D55067



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to