diff options
author | Araq <rumpf_a@web.de> | 2017-02-26 17:40:46 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-26 17:41:00 +0100 |
commit | 46b672a6c4771d150d78b1fb62ebd6323af3227a (patch) | |
tree | 1ceae03ac392b33ea59d72cd7a3fd663c50df635 /compiler/ccgcalls.nim | |
parent | 4c5ecb46b0b1bd14af80e7bf234e92e1bf85b28a (diff) | |
download | Nim-46b672a6c4771d150d78b1fb62ebd6323af3227a.tar.gz |
minor codegen bugfix: don't use names for closures that are also mangled Nim names
Diffstat (limited to 'compiler/ccgcalls.nim')
-rw-r--r-- | compiler/ccgcalls.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgcalls.nim b/compiler/ccgcalls.nim index 9dd5e7bb2..7493a50ca 100644 --- a/compiler/ccgcalls.nim +++ b/compiler/ccgcalls.nim @@ -200,8 +200,8 @@ proc genClosureCall(p: BProc, le, ri: PNode, d: var TLoc) = proc addComma(r: Rope): Rope = result = if r == nil: r else: r & ~", " - const PatProc = "$1.ClEnv? $1.ClPrc($3$1.ClEnv):(($4)($1.ClPrc))($2)" - const PatIter = "$1.ClPrc($3$1.ClEnv)" # we know the env exists + const PatProc = "$1.ClE_0? $1.ClP_0($3$1.ClE_0):(($4)($1.ClP_0))($2)" + const PatIter = "$1.ClP_0($3$1.ClE_0)" # we know the env exists var op: TLoc initLocExpr(p, ri.sons[0], op) var pl: Rope |