From 6649ad939dba26bad4fd43b47cd01acf038b2bb4 Mon Sep 17 00:00:00 2001 From: William Moses Date: Fri, 6 Sep 2024 10:49:34 -0500 Subject: [PATCH] Update customrules.jl --- src/rules/customrules.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/customrules.jl b/src/rules/customrules.jl index 2dfdb16e31..d2196b0550 100644 --- a/src/rules/customrules.jl +++ b/src/rules/customrules.jl @@ -800,7 +800,7 @@ end end if !forward - funcTy = rev_TT.parameters[isKWCall ? 5 : 2 + (!applicablefn)] + funcTy = rev_TT.parameters[(isKWCall ? 5 : 2) + (!applicablefn)] if needsTape @assert tape != C_NULL tape_idx = 1+(kwtup!==nothing && !isghostty(kwtup)) + !isghostty(funcTy) + (!applicablefn)