Skip to content

Commit ca2046e

Browse files
authored
Merge pull request #19197 from JuliaLang/teh/inline_setindex_varargs
Force inlining of varargs-setindex!
2 parents 1845459 + cf7d049 commit ca2046e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ end
472472

473473
## Indexing: setindex! ##
474474
setindex!{T}(A::Array{T}, x, i1::Real) = arrayset(A, convert(T,x)::T, to_index(i1))
475-
setindex!{T}(A::Array{T}, x, i1::Real, i2::Real, I::Real...) = arrayset(A, convert(T,x)::T, to_index(i1), to_index(i2), to_indexes(I...)...) # TODO: REMOVE FOR #14770
475+
setindex!{T}(A::Array{T}, x, i1::Real, i2::Real, I::Real...) = (@_inline_meta; arrayset(A, convert(T,x)::T, to_index(i1), to_index(i2), to_indexes(I...)...)) # TODO: REMOVE FOR #14770
476476

477477
# These are redundant with the abstract fallbacks but needed for bootstrap
478478
function setindex!(A::Array, x, I::AbstractVector{Int})

0 commit comments

Comments
 (0)