[PATCH] D151772: [LangRef] fix the function result attributes location explanation

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 31 00:55:38 PDT 2023


nikic 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.
 
----------------
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`.


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

https://reviews.llvm.org/D151772



More information about the llvm-commits mailing list