Update compiler/liftdestructors.nim

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
ringabout
2026-02-04 18:46:31 +08:00
committed by GitHub
parent ae2c155042
commit 280b71d622

View File

@@ -566,7 +566,7 @@ proc considerInferDupFromCopy(c: var TLiftCtx; t: PType; body, x, y: PNode): boo
if op2 != nil and sfOverridden in op2.flags:
#markUsed(c.g.config, c.info, op, c.g.usageSym)
onUse(c.info, op2)
body.add newHookCall(c, t.assignment, x, y)
body.add newHookCall(c, op2, x, y)
result = true
else:
result = false