[PATCH] D151772: [LangRef] fix the function result attributes location explanation
Kohei Asano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 01:40:06 PDT 2023
khei4 added inline comments.
================
Comment at: llvm/docs/LangRef.rst:1102
Note that any attributes for the function result (``nounwind``,
-``readonly``) come immediately after the argument list.
+``readonly``) come before the result type.
----------------
nikic wrote:
> You are right that attributes for the result come before the return type, but the example attributes this listed are actually function attributes, not return value attributes. So you might want to adjust then to something like `nonnull` and `signext`.
Oh, thanks! I should have checked it also!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151772/new/
https://reviews.llvm.org/D151772
More information about the llvm-commits
mailing list