Skip to content

Commit

Permalink
Fix hook signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 10, 2019
1 parent c564a07 commit 2cd11c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4813,7 +4813,7 @@ static std::pair<std::unique_ptr<Module>, jl_llvm_functions_t>
size_t stmtslen = jl_array_dim0(stmts);

if (JL_HOOK_TEST(ctx.params, emit_function)) {
JL_HOOK_CALL(ctx.params, emit_function, 3, (jl_value_t*)ctx.linfo,
JL_HOOK_CALL(ctx.params, emit_function, 2, (jl_value_t*)ctx.linfo,
(jl_value_t*)ctx.source);
}

Expand Down Expand Up @@ -6160,7 +6160,7 @@ static std::pair<std::unique_ptr<Module>, jl_llvm_functions_t>
}

if (JL_HOOK_TEST(ctx.params, emitted_function)) {
JL_HOOK_CALL(ctx.params, emitted_function, 3, (jl_value_t*)ctx.linfo,
JL_HOOK_CALL(ctx.params, emitted_function, 2, (jl_value_t*)ctx.linfo,
(jl_value_t*)ctx.source);
}

Expand Down

0 comments on commit 2cd11c4

Please sign in to comment.