Replies: 2 comments
-
You can find the output type of run function at the main function. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used iter_functions, iter_blocks, iter_instrs and set_inst_debug_location to insert my own instructions.
However, running 'make' produces an error:
File "src/main.ml", line 11, characters 5-34:
11 | |> Llvm.print_module output_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: This expression has type Llvm.llmodule -> unit
but an expression was expected of type unit -> 'a
Hint: Did you forget to wrap the expression using `fun () ->'?
What should the function 'run' output?
Beta Was this translation helpful? Give feedback.
All reactions