mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
be consistent, strings have destructors for --gc:destructors
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user