Skip to content

Commit

Permalink
fix CI on backports-release-1.10 (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Apr 10, 2024
1 parent 93f06e2 commit a71cdad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/JET.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ get_lin((sv, pc)::StateAtPC) = begin
return linetable[codeloc]::LineInfoNode
elseif isa(sv, OptimizationState) && codeloc == 0
return nothing
elseif length(linetable) == 1
# XXX `codelocs` seems to be broken for some reason,
# but we've got to use linetable /w single line info node if that's what's available
return only(linetable)::LineInfoNode
else
# Packages might dynamically generate code, which does not reference
# a source, see https://github.com/aviatesk/JET.jl/issues/273
Expand Down

0 comments on commit a71cdad

Please sign in to comment.