Skip to content

Commit 6d5143c

Browse files
committed
Merge pull request #16057 from JuliaLang/jb/fewerBoxes
avoid allocating Boxes in easy cases
2 parents 063ef32 + 1dbc0cd commit 6d5143c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/julia-syntax.scm

+2
Original file line numberDiff line numberDiff line change
@@ -2716,6 +2716,8 @@ f(x) = yt(x)
27162716
(error (string "cannot add method to function argument " name)))
27172717
(if (eqv? (string.char (string name) 0) #\@)
27182718
(error "macro definition not allowed inside a local scope"))))
2719+
(if lam2
2720+
(lambda-optimize-vars! lam2))
27192721
(if (not local?) ;; not a local function; will not be closure converted to a new type
27202722
(cond (short e)
27212723
((null? cvs)

0 commit comments

Comments
 (0)