Update compiler/ccgexprs.nim

This commit is contained in:
ringabout
2026-05-14 17:40:28 +08:00
committed by GitHub
parent 0aa85beca0
commit b1cd5bed1a

View File

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