diff options
author | Araq <rumpf_a@web.de> | 2017-02-26 17:27:36 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-26 17:41:00 +0100 |
commit | 4c5ecb46b0b1bd14af80e7bf234e92e1bf85b28a (patch) | |
tree | 3a87898d96dab0c5b2d11bbbf9bed963e77a2c80 /compiler/ccgcalls.nim | |
parent | fb37d13f46af037aa5f40f0715e4513f515f5de2 (diff) | |
download | Nim-4c5ecb46b0b1bd14af80e7bf234e92e1bf85b28a.tar.gz |
fixes a minor codegen issue where name mangling could produce an identifier used by the codegen; refs #5437
Diffstat (limited to 'compiler/ccgcalls.nim')
-rw-r--r-- | compiler/ccgcalls.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgcalls.nim b/compiler/ccgcalls.nim index 8ea81ac65..9dd5e7bb2 100644 --- a/compiler/ccgcalls.nim +++ b/compiler/ccgcalls.nim @@ -109,7 +109,7 @@ proc openArrayLoc(p: BProc, n: PNode): Rope = initLocExpr(p, n, a) case skipTypes(a.t, abstractVar).kind of tyOpenArray, tyVarargs: - result = "$1, $1Len0" % [rdLoc(a)] + result = "$1, $1Len_0" % [rdLoc(a)] of tyString, tySequence: if skipTypes(n.typ, abstractInst).kind == tyVar and not compileToCpp(p.module): |