mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
IC: codegen: fix (#17931)
This commit is contained in:
@@ -2640,7 +2640,9 @@ proc genConstSetup(p: BProc; sym: PSym): bool =
|
||||
result = lfNoDecl notin sym.loc.flags
|
||||
|
||||
proc genConstHeader(m, q: BModule; p: BProc, sym: PSym) =
|
||||
assert(sym.loc.r != nil)
|
||||
if sym.loc.r == nil:
|
||||
if not genConstSetup(p, sym): return
|
||||
assert(sym.loc.r != nil, $sym.name.s & $sym.itemId)
|
||||
if m.hcrOn:
|
||||
m.s[cfsVars].addf("static $1* $2;$n", [getTypeDesc(m, sym.loc.t, skVar), sym.loc.r]);
|
||||
m.initProc.procSec(cpsLocals).addf(
|
||||
|
||||
Reference in New Issue
Block a user