From 6d3580bb305dc80b41336a4a67b15b4e3e3bfed3 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 20 Mar 2023 06:49:14 -0500 Subject: [PATCH] Support mi.specialization::MethodInstance This is such an easy fix, we might as well just do it here. --- src/visit.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/visit.jl b/src/visit.jl index 9b2f980..59ff1f3 100644 --- a/src/visit.jl +++ b/src/visit.jl @@ -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