fixes #15717
This commit is contained in:
parent
919593395c
commit
558115fa29
2 changed files with 21 additions and 0 deletions
|
|
@ -683,6 +683,8 @@ proc genNewSeq(c: PCtx; n: PNode) =
|
|||
|
||||
proc genNewSeqOfCap(c: PCtx; n: PNode; dest: var TDest) =
|
||||
let t = n.typ
|
||||
if dest < 0:
|
||||
dest = c.getTemp(n.typ)
|
||||
let tmp = c.getTemp(n[1].typ)
|
||||
c.gABx(n, opcLdNull, dest, c.genType(t))
|
||||
c.gABx(n, opcLdImmInt, tmp, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue