From d3c8f1ab25a810516baccc2b1bff761dbbc2d011 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 12 Jun 2014 16:35:53 +0200 Subject: [PATCH] fixes recently introduced regression --- compiler/ccgtypes.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 28c791e42f..8e762ce279 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -798,7 +798,8 @@ proc genObjectInfo(m: BModule, typ: PType, name: PRope) = appf(m.s[cfsTypeInit3], "$1.node = &$2;$n", [name, tmp]) var t = typ.sons[0] while t != nil: - t.skipTypes(abstractInst).flags.incl tfObjHasKids + t = t.skipTypes(abstractInst) + t.flags.incl tfObjHasKids t = t.sons[0] proc genTupleInfo(m: BModule, typ: PType, name: PRope) =