From bae193cb5332d198b93e74d43e988243861fad01 Mon Sep 17 00:00:00 2001 From: Sanjiban Sengupta Date: Thu, 18 Mar 2021 11:22:26 +0530 Subject: [PATCH] @_propagate_inbounds_meta added before function call --- base/abstractarray.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/base/abstractarray.jl b/base/abstractarray.jl index 4bc3c4f70ebb4..73b06899c496a 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -1170,6 +1170,7 @@ function getindex(A::AbstractArray, I...) _getindex(IndexStyle(A), A, to_indices(A, I)...) end # To avoid invalidations from multidimensional.jl: getindex(A::Array, i1::Union{Integer, CartesianIndex}, I::Union{Integer, CartesianIndex}...) +@_propagate_inbounds_meta getindex(A::Array, i1::Integer, I::Integer...) = A[to_indices(A, (i1, I...))...] function unsafe_getindex(A::AbstractArray, I...)