Skip to content

Commit

Permalink
[Doc] Fix example in codegen doc.
Browse files Browse the repository at this point in the history
The attributes in the example are placed wrong:
They belong after the type, not after the parameter name.

Reviewed by: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D94683
  • Loading branch information
redstar committed Jan 18, 2021
1 parent f744390 commit 9399681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/docs/CodeGenerator.rst
Expand Up @@ -2112,7 +2112,7 @@ Call as ``llc -tailcallopt test.ll``.
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
}
Expand Down

0 comments on commit 9399681

Please sign in to comment.