fixes a minor codegen issue where name mangling could produce an identifier used by the codegen; refs #5437

This commit is contained in:
Araq 2017-02-26 17:27:36 +01:00
commit 4c5ecb46b0
4 changed files with 10 additions and 10 deletions

View file

@ -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):