parent
3647c03cad
commit
98002149a8
1 changed files with 2 additions and 2 deletions
|
|
@ -1585,8 +1585,8 @@ proc genGlobalInit(c: PCtx; n: PNode; s: PSym) =
|
||||||
# var decls{.compileTime.}: seq[NimNode] = @[]
|
# var decls{.compileTime.}: seq[NimNode] = @[]
|
||||||
let dest = c.getTemp(s.typ)
|
let dest = c.getTemp(s.typ)
|
||||||
c.gABx(n, opcLdGlobal, dest, s.position)
|
c.gABx(n, opcLdGlobal, dest, s.position)
|
||||||
if s.ast != nil:
|
if s.astdef != nil:
|
||||||
let tmp = c.genx(s.ast)
|
let tmp = c.genx(s.astdef)
|
||||||
c.genAdditionalCopy(n, opcWrDeref, dest, 0, tmp)
|
c.genAdditionalCopy(n, opcWrDeref, dest, 0, tmp)
|
||||||
c.freeTemp(dest)
|
c.freeTemp(dest)
|
||||||
c.freeTemp(tmp)
|
c.freeTemp(tmp)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue