Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Oct 26, 2023
1 parent 5a09276 commit 939f4c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/interpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@ function CC.codeinst_to_ir(interp::CthulhuInterpreter, code::CodeInstance)
end
end

@static if VERSION v"1.11.0-DEV.737"
function CC.finish!(interp::CthulhuInterpreter, caller::InferenceState)
result = caller.result
result.src = create_cthulhu_source(result.src, result.ipo_effects)
return nothing
end
else
function CC.finish!(interp::CthulhuInterpreter, caller::InferenceResult)
caller.src = create_cthulhu_source(caller.src, caller.ipo_effects)
end
end

0 comments on commit 939f4c8

Please sign in to comment.