Skip to content

Commit

Permalink
adapt to changes in UnionSplitInfo (#600)
Browse files Browse the repository at this point in the history
due to JuliaLang/julia#55815

---------

Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com>
  • Loading branch information
simeonschaub and aviatesk authored Sep 26, 2024
1 parent f3604a5 commit 2b71d47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ function process_info(interp::AbstractInterpreter, @nospecialize(info::CCCallInf
is_cached(mi) ? mici : UncachedCallInfo(mici)
end for match::Core.MethodMatch in matches]
elseif isa(info, UnionSplitInfo)
return mapreduce(process_recursive, vcat, info.matches; init=CallInfo[])::Vector{CallInfo}
@static if hasfield(UnionSplitInfo, :split)
return mapreduce(process_recursive, vcat, info.split; init=CallInfo[])::Vector{CallInfo}
else
return mapreduce(process_recursive, vcat, info.matches; init=CallInfo[])::Vector{CallInfo}
end
elseif isa(info, UnionSplitApplyCallInfo)
return mapreduce(process_recursive, vcat, info.infos; init=CallInfo[])::Vector{CallInfo}
elseif isa(info, ApplyCallInfo)
Expand Down

0 comments on commit 2b71d47

Please sign in to comment.