Skip to content

Commit

Permalink
Support mi.specialization::MethodInstance (#38)
Browse files Browse the repository at this point in the history
This is such an easy fix, we might as well just do it here.
  • Loading branch information
timholy authored Mar 23, 2023
1 parent 37492ce commit 909c450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/visit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ function _visit(@nospecialize(operation), m::Method, visited::IdSet{Any}, print:
end
elseif isa(spec, Core.SimpleVector)
_visit(operation, spec, visited, print)
elseif isa(spec, MethodInstance)
_visit(operation, spec, visited, print)
else
error("unhandled type ", typeof(spec), ": ", spec)
end
Expand Down

0 comments on commit 909c450

Please sign in to comment.