Skip to content

Commit

Permalink
don't empty! const call results for the usages in external packages
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Oct 31, 2023
1 parent a772055 commit c882bf4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion base/compiler/ssair/inlining.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,6 @@ function handle_call!(todo::Vector{Pair{Int,Any}},
ir::IRCode, idx::Int, stmt::Expr, @nospecialize(info::CallInfo), flag::UInt32, sig::Signature,
state::InliningState)
cases = compute_inlining_cases(info, flag, sig, state)
info isa ConstCallInfo && empty!(info.results) # clear code to save memory
cases === nothing && return nothing
cases, all_covered, joint_effects = cases
handle_cases!(todo, ir, idx, stmt, argtypes_to_type(sig.argtypes), cases,
Expand Down

0 comments on commit c882bf4

Please sign in to comment.