Skip to content

Commit

Permalink
be consistent, strings have destructors for --gc:destructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Apr 10, 2019
1 parent 0518794 commit 28b4db4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler/semtypes.nim
Expand Up @@ -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))
Expand Down

0 comments on commit 28b4db4

Please sign in to comment.