Skip to content

Commit

Permalink
newruntime
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jul 18, 2024
1 parent 77f3843 commit 0db31a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/sempass2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ 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 tracked.config.selectedGC in {gcArc, gcAtomicArc, gcOrc, gcRefc}:
if tracked.config.selectedGC == gcRefc or
optSeqDestructors in tracked.config.globalOptions or
tfHasAsgn in typ.flags:
tracked.owner.flags.incl sfInjectDestructors

proc isLocalSym(a: PEffects, s: PSym): bool =
Expand Down

0 comments on commit 0db31a7

Please sign in to comment.