diff --git a/compiler/cgen.nim b/compiler/cgen.nim index d051934b5..c747d9493 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -566,6 +566,9 @@ proc localVarDecl(p: BProc; n: PNode): Rope = if s.kind == skLet: incl(s.loc.flags, lfNoDeepCopy) if s.kind in {skLet, skVar, skField, skForVar} and s.alignment > 0: result.addf("NIM_ALIGN($1) ", [rope(s.alignment)]) + + genCLineDir(result, toFullPath(p.config, n.info), n.info.safeLineNm, p.config) + result.add getTypeDesc(p.module, s.typ, skVar) if s.constraint.isNil: if sfRegister in s.flags: result.add(" register")