From 88cf6573e04bd7ee8762aa336460b9748f0d4644 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 6 May 2018 08:59:39 +0200 Subject: [PATCH] fixes #7743 --- compiler/cgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index d838f9b9c3..693930fbc4 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -746,7 +746,7 @@ proc genProcAux(m: BModule, prc: PSym) = else: fillResult(resNode) assignParam(p, res) - resetLoc(p, res.loc) + if sfNoInit notin prc.flags: resetLoc(p, res.loc) if skipTypes(res.typ, abstractInst).kind == tyArray: #incl(res.loc.flags, lfIndirect) res.loc.storage = OnUnknown