mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-26 00:21:42 +00:00
Update compiler/ccgexprs.nim
This commit is contained in:
@@ -2819,7 +2819,7 @@ proc genMoveCall(p: BProc; n: PNode; d: var TLoc) =
|
||||
n[1] = makeAddr(n[1], p.module.idgen)
|
||||
let moveSym = n[0].sym
|
||||
let oldOwner = moveSym.owner
|
||||
# without this, C++ types are broken
|
||||
# TODO: sem instantiation issues, without this, C++ types are broken
|
||||
setOwner(moveSym, p.module.module)
|
||||
genCall(p, n, d)
|
||||
setOwner(moveSym, oldOwner)
|
||||
|
||||
Reference in New Issue
Block a user