[PATCH] D88325: IR: Reject unsized sret in verifier

John McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 10:19:51 PDT 2020


rjmccall added a comment.

`sret` marks that a parameter needs the special indirect-return argument ABI, which does *not* require a sized type on many architectures.  Swift actually relies on being able to trigger this ABI on a value of unknown size.  Swift can, of course, just use a meaningless sized type, but since I assume you intend to actually use the type for something, I am concerned.


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

https://reviews.llvm.org/D88325



More information about the llvm-commits mailing list