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,7 +1811,6 @@ 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: