This commit is contained in:
Andreas Rumpf 2018-05-06 08:59:39 +02:00
commit 88cf6573e0

View file

@ -746,7 +746,7 @@ proc genProcAux(m: BModule, prc: PSym) =
else: else:
fillResult(resNode) fillResult(resNode)
assignParam(p, res) assignParam(p, res)
resetLoc(p, res.loc) if sfNoInit notin prc.flags: resetLoc(p, res.loc)
if skipTypes(res.typ, abstractInst).kind == tyArray: if skipTypes(res.typ, abstractInst).kind == tyArray:
#incl(res.loc.flags, lfIndirect) #incl(res.loc.flags, lfIndirect)
res.loc.storage = OnUnknown res.loc.storage = OnUnknown