fixes #3723
This commit is contained in:
parent
9429e0f064
commit
34a783a61c
1 changed files with 1 additions and 1 deletions
|
|
@ -1839,7 +1839,7 @@ proc genClosure(p: BProc, n: PNode, d: var TLoc) =
|
||||||
|
|
||||||
if isConstClosure(n):
|
if isConstClosure(n):
|
||||||
inc(p.module.labels)
|
inc(p.module.labels)
|
||||||
var tmp = "LOC" & rope(p.module.labels)
|
var tmp = "CNSTCLOSURE" & rope(p.module.labels)
|
||||||
addf(p.module.s[cfsData], "static NIM_CONST $1 $2 = $3;$n",
|
addf(p.module.s[cfsData], "static NIM_CONST $1 $2 = $3;$n",
|
||||||
[getTypeDesc(p.module, n.typ), tmp, genConstExpr(p, n)])
|
[getTypeDesc(p.module, n.typ), tmp, genConstExpr(p, n)])
|
||||||
putIntoDest(p, d, n.typ, tmp, OnStatic)
|
putIntoDest(p, d, n.typ, tmp, OnStatic)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue