Skip to content

Commit

Permalink
adapt to implicit leave change in Julia (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored Mar 10, 2024
1 parent f7138f9 commit e0e34be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interpret.jl
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,9 @@ function handle_err(@nospecialize(recurse), frame, err)
rethrow(err)
end
data.last_exception[] = err
return (frame.pc = data.exception_frames[end])
pc = VERSION >= v"1.11-" ? pop!(data.exception_frames) : data.exception_frames[end] # implicit :leave after https://github.com/JuliaLang/julia/pull/52245
frame.pc = pc
return pc
end

lookup_return(frame, node::ReturnNode) = @lookup(frame, node.val)
Expand Down

0 comments on commit e0e34be

Please sign in to comment.