enhance: add address analysis in semMove to check if address is taken in calls

This commit is contained in:
ringabout
2026-05-11 21:28:35 +08:00
parent 234820634f
commit 16cb41b1ae

View File

@@ -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 =