From 16cb41b1ae8fb2caed4d6ab8fe934061922376c0 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 11 May 2026 21:28:35 +0800 Subject: [PATCH] enhance: add address analysis in semMove to check if address is taken in calls --- compiler/semmagic.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim index fec090a602..fa33d07c5c 100644 --- a/compiler/semmagic.nim +++ b/compiler/semmagic.nim @@ -606,6 +606,7 @@ proc semMove(c: PContext; n: PNode): PNode = ensureMutable callee callee.magic = mNone setOwner(callee, c.module) + analyseIfAddressTakenInCall(c, result, false) proc magicsAfterOverloadResolution(c: PContext, n: PNode, flags: TExprFlags; expectedType: PType = nil): PNode =