From f30646eb80b5aec0bd8fe3f376aba870400afb05 Mon Sep 17 00:00:00 2001 From: Simeon David Schaub Date: Thu, 26 Sep 2024 19:39:47 +0200 Subject: [PATCH 1/2] adapt to changes in `UnionSplitInfo` due to JuliaLang/julia#55815 --- src/reflection.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/reflection.jl b/src/reflection.jl index ca544988..2a3ae064 100644 --- a/src/reflection.jl +++ b/src/reflection.jl @@ -179,6 +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) + @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 return mapreduce(process_recursive, vcat, info.matches; init=CallInfo[])::Vector{CallInfo} elseif isa(info, UnionSplitApplyCallInfo) return mapreduce(process_recursive, vcat, info.infos; init=CallInfo[])::Vector{CallInfo} From 1057520e86c79280a108b1af98ff380c85643170 Mon Sep 17 00:00:00 2001 From: Simeon David Schaub Date: Thu, 26 Sep 2024 20:14:59 +0200 Subject: [PATCH 2/2] Update src/reflection.jl Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> --- src/reflection.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/reflection.jl b/src/reflection.jl index 2a3ae064..1e5757f8 100644 --- a/src/reflection.jl +++ b/src/reflection.jl @@ -184,7 +184,6 @@ function process_info(interp::AbstractInterpreter, @nospecialize(info::CCCallInf else return mapreduce(process_recursive, vcat, info.matches; init=CallInfo[])::Vector{CallInfo} end - return mapreduce(process_recursive, vcat, info.matches; init=CallInfo[])::Vector{CallInfo} elseif isa(info, UnionSplitApplyCallInfo) return mapreduce(process_recursive, vcat, info.infos; init=CallInfo[])::Vector{CallInfo} elseif isa(info, ApplyCallInfo)