From 2786525d67a1c717e49791811fe3d403976c2c8d Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Sat, 4 Feb 2023 14:42:07 -0500 Subject: [PATCH] Attempt 1.6 fix --- lib/EnzymeCore/src/rules.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/EnzymeCore/src/rules.jl b/lib/EnzymeCore/src/rules.jl index 18599c7221..b6eac99f52 100644 --- a/lib/EnzymeCore/src/rules.jl +++ b/lib/EnzymeCore/src/rules.jl @@ -44,7 +44,7 @@ function reverse end function _annotate(@nospecialize(T)) if isvarargtype(T) VA = T - T = _annotate(VA.T) + T = _annotate(Core.Compiler.unwrapva(VA)) if isdefined(VA, :N) return Vararg{T, VA.N} else