Skip to content

Commit 88cf657

Browse files
committed
fixes #7743
1 parent cd0985d commit 88cf657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/cgen.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ proc genProcAux(m: BModule, prc: PSym) =
746746
else:
747747
fillResult(resNode)
748748
assignParam(p, res)
749-
resetLoc(p, res.loc)
749+
if sfNoInit notin prc.flags: resetLoc(p, res.loc)
750750
if skipTypes(res.typ, abstractInst).kind == tyArray:
751751
#incl(res.loc.flags, lfIndirect)
752752
res.loc.storage = OnUnknown

0 commit comments

Comments
 (0)