mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 23:54:19 +00:00
Merge branch 'devel' into no-echo-gotcha
This commit is contained in:
@@ -1839,7 +1839,7 @@ proc genClosure(p: BProc, n: PNode, d: var TLoc) =
|
||||
|
||||
if isConstClosure(n):
|
||||
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",
|
||||
[getTypeDesc(p.module, n.typ), tmp, genConstExpr(p, n)])
|
||||
putIntoDest(p, d, n.typ, tmp, OnStatic)
|
||||
|
||||
Reference in New Issue
Block a user