Skip to content

Commit

Permalink
small typo in code example in the llvm.md documentation (#49943)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdmaas committed Aug 14, 2023
1 parent b763728 commit 022924c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/devdocs/llvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 022924c

Please sign in to comment.