aboutsummaryrefslogtreecommitdiffstats
path: root/src/lift.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lift.cpp')
-rw-r--r--src/lift.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lift.cpp b/src/lift.cpp
index 4e2159b..ad377d7 100644
--- a/src/lift.cpp
+++ b/src/lift.cpp
@@ -33,14 +33,12 @@ lift_symbol(CEnv& cenv, Code& code, const ASymbol* sym) throw()
if (!cenv.liftStack.empty() && cenv.name(cenv.liftStack.top().fn) == sym->sym()) {
return cenv.penv.sym("_me"); // Reference to innermost function
} else if (!cenv.code.innermost(sym)) {
-
- const int32_t index = cenv.liftStack.top().index(sym);
-
// Replace symbol with code to access free variable from closure
+ const int32_t index = cenv.liftStack.top().index(sym);
return tup<ATuple>(sym->loc, cenv.penv.sym("."),
cenv.penv.sym("_me"),
new ALiteral<int32_t>(T_INT32, index, Cursor()),
- NULL);
+ NULL);
} else {
return sym;
}