be consistent, strings have destructors for --gc:destructors
This commit is contained in:
parent
0518794291
commit
28b4db4470
1 changed files with 2 additions and 3 deletions
|
|
@ -1811,9 +1811,8 @@ proc processMagicType(c: PContext, m: PSym) =
|
||||||
of mString:
|
of mString:
|
||||||
setMagicType(c.config, m, tyString, szUncomputedSize)
|
setMagicType(c.config, m, tyString, szUncomputedSize)
|
||||||
rawAddSon(m.typ, getSysType(c.graph, m.info, tyChar))
|
rawAddSon(m.typ, getSysType(c.graph, m.info, tyChar))
|
||||||
when false:
|
if c.config.selectedGc == gcDestructors:
|
||||||
if c.config.selectedGc == gcDestructors:
|
incl m.typ.flags, tfHasAsgn
|
||||||
incl m.typ.flags, tfHasAsgn
|
|
||||||
of mCstring:
|
of mCstring:
|
||||||
setMagicIntegral(c.config, m, tyCString, c.config.target.ptrSize)
|
setMagicIntegral(c.config, m, tyCString, c.config.target.ptrSize)
|
||||||
rawAddSon(m.typ, getSysType(c.graph, m.info, tyChar))
|
rawAddSon(m.typ, getSysType(c.graph, m.info, tyChar))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue