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

@ -413,7 +413,7 @@ proc genProcParams(m: BModule, t: PType, rettype, params: var Rope,
# this fixes the 'sort' bug:
if param.typ.kind == tyVar: param.loc.s = OnUnknown
# need to pass hidden parameter:
addf(params, ", NI $1Len$2", [param.loc.r, j.rope])
addf(params, ", NI $1Len_$2", [param.loc.r, j.rope])
inc(j)
arr = arr.sons[0]
if t.sons[0] != nil and isInvalidReturnType(t.sons[0]):