NoQ added a comment.

> How do we calculate the type then?

Argument expression type + account for value kind (lvalue argument expression 
means reference parameter, xvalue argument expression mean rvalue reference 
parameter).

Note that for C-style variadic functions, parameter declarations for variadic 
arguments are also not available. It doesn't mean that we will never be able to 
analyze them. We can analyze everything: after all, we can CodeGen everything 
from the AST. On the contrary, the solution you're implementing now would work 
for C-style variadic functions as well, finally allowing us to inline them.


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

https://reviews.llvm.org/D77229



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

Reply via email to