Skip to content

Commit

Permalink
mir-bin-run.c: Remove one arg in MIR_gen_init and MIR_gen calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmakarov committed Feb 5, 2024
1 parent 082bdf3 commit 5dcba9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mir-bin-run.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ int main (int argc, char **argv, char **envp) {
(MIR_val_t){.a = (void *) (argv + 2)}, (MIR_val_t){.a = (void *) envp});
exit_code = val.i;
} else {
MIR_gen_init (mctx, 1);
MIR_gen_init (mctx);
MIR_link (mctx, mir_type == MIR_TYPE_GEN ? MIR_set_gen_interface : MIR_set_lazy_gen_interface,
import_resolver);
uint64_t (*fun_addr) (int, char **, char **) = MIR_gen (mctx, 0, main_func);
uint64_t (*fun_addr) (int, char **, char **) = MIR_gen (mctx, main_func);
exit_code = fun_addr (argc - 2, argv + 2, envp);
MIR_gen_finish (mctx);
}
Expand Down

0 comments on commit 5dcba9a

Please sign in to comment.