Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- fixes #609
- fixes #610
  • Loading branch information
aviatesk committed Nov 5, 2024
1 parent c6556e9 commit 41d0996
Showing 1 changed file with 10 additions and 2 deletions.
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

0 comments on commit 41d0996

Please sign in to comment.