Skip to content

Commit

Permalink
very minor type stability improvement (JuliaLang#39733)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Feb 18, 2021
1 parent f07b12b commit a235107
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/boot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,11 @@ function (g::GeneratedFunctionStub)(@nospecialize args...)
Expr(:meta, :push_loc, g.file, Symbol("@generated body")),
Expr(:return, body),
Expr(:meta, :pop_loc))))
if g.spnames === nothing
spnames = g.spnames
if spnames === nothing
return lam
else
return Expr(Symbol("with-static-parameters"), lam, g.spnames...)
return Expr(Symbol("with-static-parameters"), lam, spnames...)
end
end

Expand Down

0 comments on commit a235107

Please sign in to comment.