fixes #5519
This commit is contained in:
parent
4644484fb7
commit
68c6d709d3
2 changed files with 42 additions and 3 deletions
|
|
@ -190,9 +190,12 @@ proc transformVarSection(c: PTransf, v: PNode): PTransNode =
|
|||
var L = sonsLen(it)
|
||||
var defs = newTransNode(it.kind, it.info, L)
|
||||
for j in countup(0, L-3):
|
||||
let x = freshVar(c, it.sons[j].sym)
|
||||
idNodeTablePut(c.transCon.mapping, it.sons[j].sym, x)
|
||||
defs[j] = x.PTransNode
|
||||
if it[j].kind == nkSym:
|
||||
let x = freshVar(c, it.sons[j].sym)
|
||||
idNodeTablePut(c.transCon.mapping, it.sons[j].sym, x)
|
||||
defs[j] = x.PTransNode
|
||||
else:
|
||||
defs[j] = transform(c, it[j])
|
||||
assert(it.sons[L-2].kind == nkEmpty)
|
||||
defs[L-2] = newNodeI(nkEmpty, it.info).PTransNode
|
||||
defs[L-1] = transform(c, it.sons[L-1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue