Skip to content

Commit

Permalink
minimum changes to Cthulhu interface changes (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Mar 12, 2024
1 parent 6ce9178 commit 2accab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stage2/interpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ function Cthulhu.navigate(curs::ADCursor, callsite::Cthulhu.Callsite)
return ADCursor(curs.level, Cthulhu.get_mi(callsite))
end

function Cthulhu.process_info(interp::ADInterpreter, @nospecialize(info::CC.CallInfo), argtypes::Cthulhu.ArgTypes, @nospecialize(rt), optimize::Bool)
function Cthulhu.process_info(interp::ADInterpreter, @nospecialize(info::CC.CallInfo), argtypes::Cthulhu.ArgTypes, @nospecialize(rt), optimize::Bool, @nospecialize(exct))
if isa(info, RecurseInfo)
newargtypes = argtypes[2:end]
callinfos = Cthulhu.process_info(interp, info.info, newargtypes, Cthulhu.unwrapType(widenconst(rt)), optimize)
callinfos = Cthulhu.process_info(interp, info.info, newargtypes, Cthulhu.unwrapType(widenconst(rt)), optimize, exct)
if length(callinfos) == 1
vmi = only(callinfos)
else
Expand All @@ -234,7 +234,7 @@ function Cthulhu.process_info(interp::ADInterpreter, @nospecialize(info::CC.Call
return Any[RecurseCallInfo(vmi)]
elseif isa(info, RRuleInfo)
newargtypes = [Const(rrule); argtypes[2:end]]
callinfos = Cthulhu.process_info(interp, info.info, newargtypes, Cthulhu.unwrapType(widenconst(rt)), optimize)
callinfos = Cthulhu.process_info(interp, info.info, newargtypes, Cthulhu.unwrapType(widenconst(rt)), optimize, exct)
if length(callinfos) == 1
vmi = only(callinfos)
else
Expand Down

0 comments on commit 2accab5

Please sign in to comment.