Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Mar 21, 2024
1 parent 4d63a09 commit 28dd37c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ end

# These getters improve inference since fieldtype(CodeInfo, :linetable)
# and fieldtype(CodeInfo, :codelocs) are both Any
const LineTypes = Union{LineNumberNode,Core.LineInfoNode}
@static if VERSION v"1.12.0-DEV.173"
const LineTypes = Base.IRShow.LineInfoNode
else
const LineTypes = Union{LineNumberNode,Core.LineInfoNode}
end
function linetable(arg)
if isa(arg, Frame)
arg = arg.framecode
Expand Down

0 comments on commit 28dd37c

Please sign in to comment.