From 022924caac2170aea651ce9cbef1d606f17a8bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20D=2E=20Maas?= Date: Mon, 14 Aug 2023 09:52:06 -0300 Subject: [PATCH] small typo in code example in the llvm.md documentation (#49943) The code in the documentation returns an error: ``` ERROR: MethodError: no method matching _dump_function(::typeof(+), ::Type{Tuple{Int64, Int64}}, ::Bool, ::Bool, ::Bool, ::Bool, ::Symbol, ::Bool, ::Symbol) ``` apparently, one boolean variable was missing from the call to `InteractiveUtils._dump_function`. Adding one `false` at the end of the call should fix that. --- doc/src/devdocs/llvm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/devdocs/llvm.md b/doc/src/devdocs/llvm.md index 4e5e90d7cdbc6..e2ba8617d9550 100644 --- a/doc/src/devdocs/llvm.md +++ b/doc/src/devdocs/llvm.md @@ -147,7 +147,7 @@ using: fun, T = +, Tuple{Int,Int} # Substitute your function of interest here optimize = false open("plus.ll", "w") do file - println(file, InteractiveUtils._dump_function(fun, T, false, false, false, true, :att, optimize, :default)) + println(file, InteractiveUtils._dump_function(fun, T, false, false, false, true, :att, optimize, :default, false)) end ``` These files can be processed the same way as the unoptimized sysimg IR shown