From 159df62a32afdcc72a1de42721718f060b6bac03 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:46:11 +0900 Subject: [PATCH] adjust to JuliaLang/julia#54894 (#611) - fixes JuliaDebug/Cthulhu.jl#609 - fixes JuliaDebug/Cthulhu.jl#610 --- src/reflection.jl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/reflection.jl b/src/reflection.jl index f69358fe..3ac48100 100644 --- a/src/reflection.jl +++ b/src/reflection.jl @@ -135,7 +135,11 @@ function process_const_info(interp::AbstractInterpreter, @nospecialize(thisinfo) # will always transform `frame.result.src` to `OptimizedSource` when frame is inferred return thisinfo elseif isa(result, CC.ConcreteResult) - linfo = result.mi + @static if VERSION ≥ v"1.12.0-DEV.1531" + linfo = result.edge.def + else + linfo = result.mi + end effects = get_effects(result) mici = MICallInfo(linfo, rt, effects, exct) return ConcreteCallInfo(mici, argtypes) @@ -146,7 +150,11 @@ function process_const_info(interp::AbstractInterpreter, @nospecialize(thisinfo) mici = MICallInfo(linfo, rt, effects, exct) return ConstPropCallInfo(is_cached(optimize ? linfo : result) ? mici : UncachedCallInfo(mici), result) elseif isa(result, CC.SemiConcreteResult) - linfo = result.mi + @static if VERSION ≥ v"1.12.0-DEV.1531" + linfo = result.edge.def + else + linfo = result.mi + end effects = get_effects(result) mici = MICallInfo(linfo, rt, effects, exct) return SemiConcreteCallInfo(mici, result.ir)