[PATCH] D94683: [Doc] Fix syntax error in CodeGenerator documentation example

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 05:13:24 PST 2021


Kai created this revision.
Kai added reviewers: seaneveson, uweigand, kbarton, rnk, abhina.sreeskantharajan.
Kai requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The attributes in the example are placed wrong:
They belong after the type, not after the parameter name.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94683

Files:
  llvm/docs/CodeGenerator.rst


Index: llvm/docs/CodeGenerator.rst
===================================================================
--- llvm/docs/CodeGenerator.rst
+++ llvm/docs/CodeGenerator.rst
@@ -2112,7 +2112,7 @@
 
   define fastcc i32 @tailcaller(i32 %in1, i32 %in2) {
     %l1 = add i32 %in1, %in2
-    %tmp = tail call fastcc i32 @tailcallee(i32 %in1 inreg, i32 %in2 inreg, i32 %in1, i32 %l1)
+    %tmp = tail call fastcc i32 @tailcallee(i32 inreg %in1, i32 inreg %in2, i32 %in1, i32 %l1)
     ret i32 %tmp
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94683.316633.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/f8898262/attachment.bin>


More information about the llvm-commits mailing list