Skip to content

Commit

Permalink
Fix codegen not handling invoke exprs with Codeinstances with jl_fptr…
Browse files Browse the repository at this point in the history
…_sparam_addr invoke types.
  • Loading branch information
gbaraldi committed Dec 12, 2024
1 parent 9118ea7 commit b7161fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5526,6 +5526,10 @@ static jl_cgval_t emit_invoke(jl_codectx_t &ctx, const jl_cgval_t &lival, ArrayR
if (trim_may_error(ctx.params->trim))
push_frames(ctx, ctx.linfo, mi);
}
} else {
Value *r = emit_jlcall(ctx, jlinvoke_func, track_pjlvalue(ctx, literal_pointer_val(ctx, (jl_value_t*)mi)), argv, nargs, julia_call2);
result = mark_julia_type(ctx, r, true, rt);
handled = true;
}
}
}
Expand Down

0 comments on commit b7161fe

Please sign in to comment.