Skip to content

Commit

Permalink
Support all InferenceErrorReports
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 26, 2024
1 parent 1d7966c commit 0ae06c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/JETCthulhuExt.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module JETCthulhuExt

using JET: JET, OptimizationFailureReport, RuntimeDispatchReport, VirtualFrame
using JET: JET, InferenceErrorReport, VirtualFrame
using Cthulhu: Cthulhu, Node, Data, callstring
using Core: MethodInstance

Expand All @@ -10,7 +10,7 @@ struct CallFrames
frames::Vector{VirtualFrame}
end

function Cthulhu.treelist(r::Union{OptimizationFailureReport,RuntimeDispatchReport})
function Cthulhu.treelist(r::InferenceErrorReport)
io = IOBuffer()
cf = CallFrames(r.vst[1:end-1])
frame = r.vst[end]
Expand Down

0 comments on commit 0ae06c8

Please sign in to comment.