mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-10 00:58:10 +00:00
enhance: add address analysis in semMove to check if address is taken in calls
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user