be consistent, strings have destructors for --gc:destructors

This commit is contained in:
Araq 2019-04-10 11:04:38 +02:00
commit 28b4db4470

View file

@ -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))