Skip to content

Commit

Permalink
Put back @inline on unsafe_getindex (#51160)
Browse files Browse the repository at this point in the history
Fixup for #50467
  • Loading branch information
LilithHafner authored Sep 5, 2023
1 parent fbf73f4 commit 00ca93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ end
# To avoid invalidations from multidimensional.jl: getindex(A::Array, i1::Union{Integer, CartesianIndex}, I::Union{Integer, CartesianIndex}...)
@propagate_inbounds getindex(A::Array, i1::Integer, I::Integer...) = A[to_indices(A, (i1, I...))...]

unsafe_getindex(A::AbstractArray, I...) = @inbounds getindex(A, I...)
@inline unsafe_getindex(A::AbstractArray, I...) = @inbounds getindex(A, I...)

struct CanonicalIndexError <: Exception
func::String
Expand Down

0 comments on commit 00ca93c

Please sign in to comment.