Skip to content

Commit

Permalink
Fix InterpreterIP reference
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Nov 20, 2024
1 parent 0db0e5e commit 803cc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parcel_snoop_inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ isROOT(node::InferenceTimingNode) = isROOT(node.mi_timing)
getroot(node::InferenceTimingNode) = isdefined(node.parent, :parent) ? getroot(node.parent) : node

# Record instruction pointers we've already looked up (performance optimization)
const lookups = Dict{Union{UInt, Core.Compiler.InterpreterIP}, Vector{StackTraces.StackFrame}}()
const lookups = Dict{Union{UInt, Base.InterpreterIP}, Vector{StackTraces.StackFrame}}()
lookups_key(ip) = ip
lookups_key(ip::Ptr{Nothing}) = UInt(ip)

Expand Down

0 comments on commit 803cc34

Please sign in to comment.