diff --git a/src/rules/jitrules.jl b/src/rules/jitrules.jl index c4ca897c53e..37b286ff964 100644 --- a/src/rules/jitrules.jl +++ b/src/rules/jitrules.jl @@ -777,7 +777,7 @@ end end @generated function shadow_tuple(::Type{Ann}, ::Val{1}, args::Vararg{Annotation, Nargs}) where {Ann, Nargs} - expr = Vector{Expr}(Nargs, undef) + expr = Vector{Expr}(undef, Nargs) for i in 1:Nargs expr[i] = quote @assert !(args[$i] isa Active) @@ -801,9 +801,9 @@ end end @generated function shadow_tuple(::Type{Ann}, ::Val{width}, args::Vararg{Annotation, Nargs}) where {Ann, width, Nargs} - wexpr = Vector{Expr}(Nargs, undef) + wexpr = Vector{Expr}(undef, Nargs) for w in 1:width - expr = Vector{Expr}(Nargs, undef) + expr = Vector{Expr}(undef, Nargs) for i in Nargs expr[i] = quote @assert !(args[$i] isa Active)