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

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

View File

@@ -1811,9 +1811,8 @@ proc processMagicType(c: PContext, m: PSym) =
of mString:
setMagicType(c.config, m, tyString, szUncomputedSize)
rawAddSon(m.typ, getSysType(c.graph, m.info, tyChar))
when false:
if c.config.selectedGc == gcDestructors:
incl m.typ.flags, tfHasAsgn
if c.config.selectedGc == gcDestructors:
incl m.typ.flags, tfHasAsgn
of mCstring:
setMagicIntegral(c.config, m, tyCString, c.config.target.ptrSize)
rawAddSon(m.typ, getSysType(c.graph, m.info, tyChar))