From 280b71d622c26b1f2cc65024e21eb0dbf9140f44 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:46:31 +0800 Subject: [PATCH] Update compiler/liftdestructors.nim Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- compiler/liftdestructors.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/liftdestructors.nim b/compiler/liftdestructors.nim index 76591366b6..329e46d320 100644 --- a/compiler/liftdestructors.nim +++ b/compiler/liftdestructors.nim @@ -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