diff options
author | Araq <rumpf_a@web.de> | 2014-06-12 16:35:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-06-12 16:35:53 +0200 |
commit | d3c8f1ab25a810516baccc2b1bff761dbbc2d011 (patch) | |
tree | 7baf7bcf28b6a470b17e7890b9bfd487856f0d92 | |
parent | 15909c7be25a5956d0af7bd8d975b23d51fba560 (diff) | |
download | Nim-d3c8f1ab25a810516baccc2b1bff761dbbc2d011.tar.gz |
fixes recently introduced regression
-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) = |