From 9399681a57cef143dc4d087706947a03af819ef5 Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Thu, 14 Jan 2021 08:04:39 -0500 Subject: [PATCH] [Doc] Fix example in codegen doc. 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 --- llvm/docs/CodeGenerator.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/CodeGenerator.rst b/llvm/docs/CodeGenerator.rst index 875a96ca4e2af..7644242d2d61c 100644 --- a/llvm/docs/CodeGenerator.rst +++ b/llvm/docs/CodeGenerator.rst @@ -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 }