Skip to content
Snippets Groups Projects
Commit e616b7d7 authored by Régis Blanc's avatar Régis Blanc
Browse files

block was redundantly applying the scope

parent ebbed9d0
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ object ImperativeCodeElimination extends Pass {
(scope, accFun ++ rFun)
})
val (lastRes, lastScope, lastFun) = toFunction(expr)
(scope(replace(fun.map{ case (i1, i2) => (i1.toVariable, i2.toVariable) }, lastRes)),
(replace(fun.map{ case (i1, i2) => (i1.toVariable, i2.toVariable) }, lastRes),
(body: Expr) => scope(lastScope(body)),
fun ++ lastFun)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment