rsmith added a comment.

In https://reviews.llvm.org/D28166#634196, @aaron.ballman wrote:

> So I think the correct behavior is to only enable the vararg behavior when 
> the function is variadic with an ellipsis rather than variadic due to a lack 
> of prototype.


That sounds right. Note that functions with no prototype are not actually 
variadic, so it's permitted for a vararg definition to use a different calling 
convention from a no-prototype call, as happens in this case.


https://reviews.llvm.org/D28166



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

Reply via email to