Skip to content

Commit

Permalink
avoid allocating Boxes for variables assigned once in the first basic…
Browse files Browse the repository at this point in the history
… block

helps the easier cases of #15276
  • Loading branch information
JeffBezanson committed Apr 26, 2016
1 parent 893f7e3 commit 1dbc0cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2716,6 +2716,8 @@ f(x) = yt(x)
(error (string "cannot add method to function argument " name)))
(if (eqv? (string.char (string name) 0) #\@)
(error "macro definition not allowed inside a local scope"))))
(if lam2
(lambda-optimize-vars! lam2))
(if (not local?) ;; not a local function; will not be closure converted to a new type
(cond (short e)
((null? cvs)
Expand Down

0 comments on commit 1dbc0cd

Please sign in to comment.