Fixed noinit pragma for closure variables (#20101)
This commit is contained in:
parent
8ef509b85b
commit
424e87fd09
2 changed files with 3 additions and 2 deletions
|
|
@ -405,7 +405,7 @@ proc genClosureVar(p: BProc, a: PNode) =
|
|||
genLineDir(p, a)
|
||||
if immediateAsgn:
|
||||
loadInto(p, a[0], a[2], v)
|
||||
else:
|
||||
elif sfNoInit notin a[0][1].sym.flags:
|
||||
constructLoc(p, v)
|
||||
|
||||
proc genVarStmt(p: BProc, n: PNode) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue