Skip to content

Commit

Permalink
admits refc
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jul 17, 2024
1 parent 8b948cf commit 77f3843
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler/sempass2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ proc createTypeBoundOps(tracked: PEffects, typ: PType; info: TLineInfo) =
createTypeBoundOps(tracked.graph, tracked.c, realType.lastSon, info)

createTypeBoundOps(tracked.graph, tracked.c, typ, info, tracked.c.idgen)
# if (tfHasAsgn in typ.flags) or
# optSeqDestructors in tracked.config.globalOptions:
tracked.owner.flags.incl sfInjectDestructors
if tracked.config.selectedGC in {gcArc, gcAtomicArc, gcOrc, gcRefc}:
tracked.owner.flags.incl sfInjectDestructors

proc isLocalSym(a: PEffects, s: PSym): bool =
s.typ != nil and (s.kind in {skLet, skVar, skResult} or (s.kind == skParam and isOutParam(s.typ))) and
Expand Down

0 comments on commit 77f3843

Please sign in to comment.