Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Mar 1, 2024
1 parent 8239c26 commit 4644bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/injectdestructors.nim
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ proc passCopyToSink(n: PNode; c: var Con; s: var Scope): PNode =
let tmp = c.getTemp(s, nTyp, n.info)
let typ = nTyp.skipTypes({tyGenericInst, tyAlias, tySink})
if hasDestructor(c, nTyp) or (c.graph.config.selectedGC == gcRefc and
getAttachedOp(c.graph, typ, attachedDup) != nil):
typ.kind == tyObject and getAttachedOp(c.graph, typ, attachedDup) != nil):
let op = getAttachedOp(c.graph, typ, attachedDup)
if op != nil and tfHasOwned notin typ.flags:
if sfError in op.flags:
Expand Down

0 comments on commit 4644bb1

Please sign in to comment.