Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust to JuliaLang/julia#54894 #611

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Loading