Skip to content

Commit

Permalink
Merge pull request #1474 from actonlang/1473-fix-llift-unstable-param…
Browse files Browse the repository at this point in the history
…eter-order

Made the parameters added to closures insensitive...
  • Loading branch information
nordlander authored Sep 8, 2023
2 parents 6813cab + d572be4 commit b990a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/Acton/LambdaLifter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ extFree m env = modX env $ \x -> x{ freemapX = m ++ freemap en
extNames m env = modX env $ \x -> x{ namemapX = m ++ namemap env }

findFree n env = case lookup n (freemap env) of
Just vs -> Just $ restrict (locals env) vs
Just vs -> Just [ (v,t) | v <- vs, Just t <- [lookup v $ locals env] ]
_ -> Nothing


Expand Down

0 comments on commit b990a48

Please sign in to comment.