diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-09 12:58:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 12:58:33 +0100 |
commit | c16963083d828b7920c221a5031b509c9824db4a (patch) | |
tree | 96bb340f7bad42f8289604c5cd2c7066d0a41e9d /compiler/lambdalifting.nim | |
parent | 8035f408f1323ba81c8db794ad58687bace78afa (diff) | |
parent | e8747059710370819800bdc0742fa86761c6737b (diff) | |
download | Nim-c16963083d828b7920c221a5031b509c9824db4a.tar.gz |
Merge pull request #9912 from nim-lang/araq-fixes-nested-gensym
fixes nested gensym'ed parameters; fixes #9476
Diffstat (limited to 'compiler/lambdalifting.nim')
-rw-r--r-- | compiler/lambdalifting.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/lambdalifting.nim b/compiler/lambdalifting.nim index 874cb4bd0..ddde1be31 100644 --- a/compiler/lambdalifting.nim +++ b/compiler/lambdalifting.nim @@ -407,11 +407,8 @@ proc detectCapturedVars(n: PNode; owner: PSym; c: var DetectionPass) = obj.n[0].sym.id = -s.id else: addField(obj, s, c.graph.cache) - # but always return because the rest of the proc is only relevant when - # ow != owner: - return # direct or indirect dependency: - if (innerProc and s.typ.callConv == ccClosure) or interestingVar(s): + elif (innerProc and s.typ.callConv == ccClosure) or interestingVar(s): discard """ proc outer() = var x: int |