diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgtypes.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 28c791e42..8e762ce27 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) = |