[PATCH] D41861: [LangRef] Clarify Varargs forwarding for musttail calls.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 12:01:48 PST 2018


efriedma added a reviewer: rnk.
efriedma added inline comments.


================
Comment at: docs/LangRef.rst:9037
    Both markers imply that the callee does not access allocas or varargs from
    the caller. Calls marked ``musttail`` must obey the following additional
    rules:
----------------
Do we need to fix this paragraph?


================
Comment at: docs/LangRef.rst:9053
+     too. Bitcasting a non-varargs function to the appropriate varargs type is
+     legal so long as the non-varargs prefixes obey the other rules.
 
----------------
It would probably be more clear to separate out the bitcasting part; it isn't really a rule, just a consequence of the way bitcasting works.


https://reviews.llvm.org/D41861





More information about the llvm-commits mailing list