From b23b076850d85e105941051fcca4911c08286efb Mon Sep 17 00:00:00 2001 From: Billy Moses Date: Sun, 1 Dec 2024 15:31:28 -0500 Subject: [PATCH] Fix nmatches type mismatch --- src/compiler/interpreter.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/interpreter.jl b/src/compiler/interpreter.jl index 794a83a7b7..63fe1675eb 100644 --- a/src/compiler/interpreter.jl +++ b/src/compiler/interpreter.jl @@ -233,7 +233,7 @@ function Core.Compiler.abstract_call_gf_by_type( sv::AbsIntState, max_methods::Int, ) - if Core.Compiler.nmatches(inactive_meta.info) != 0 + if inactive_meta.info isa Core.Compiler.MethodMatchInfo && Core.Compiler.nmatches(inactive_meta.info) != 0 callinfo = NoInlineCallInfo(callinfo, atype, :inactive) else # 2. Check if rule is defined @@ -259,7 +259,7 @@ function Core.Compiler.abstract_call_gf_by_type( sv::AbsIntState, max_methods::Int, ) - if Core.Compiler.nmatches(rule_meta.info) != 0 + if rule_meta.info isa Core.Compiler.MethodMatchInfo && Core.Compiler.nmatches(rule_meta.info) != 0 callinfo = NoInlineCallInfo(callinfo, atype, interp.forward_rules ? :frule : :rrule) end end