fixes #4693
This commit is contained in:
parent
3a13706d7d
commit
9c44403934
1 changed files with 3 additions and 1 deletions
|
|
@ -812,7 +812,9 @@ proc genTypeInfoAuxBase(m: BModule; typ, origType: PType; name, base: Rope) =
|
||||||
proc genTypeInfoAux(m: BModule, typ, origType: PType, name: Rope) =
|
proc genTypeInfoAux(m: BModule, typ, origType: PType, name: Rope) =
|
||||||
var base: Rope
|
var base: Rope
|
||||||
if (sonsLen(typ) > 0) and (typ.sons[0] != nil):
|
if (sonsLen(typ) > 0) and (typ.sons[0] != nil):
|
||||||
base = genTypeInfo(m, typ.sons[0])
|
var x = typ.sons[0]
|
||||||
|
if typ.kind == tyObject: x = x.skipTypes(skipPtrs)
|
||||||
|
base = genTypeInfo(m, x)
|
||||||
else:
|
else:
|
||||||
base = rope("0")
|
base = rope("0")
|
||||||
genTypeInfoAuxBase(m, typ, origType, name, base)
|
genTypeInfoAuxBase(m, typ, origType, name, base)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue