arc: =deepcopy fixes

This commit is contained in:
Araq 2020-09-20 09:01:42 +02:00 • committed by Andreas Rumpf
commit 33be7c6f5e
3 changed files with 81 additions and 6 deletions

View file

@ -459,7 +459,6 @@ proc traverse(c: var Partitions; n: PNode) =
if paramType.kind == tyVar:
if c.inNoSideEffectSection == 0:
for r in roots: potentialMutation(c, r, it.info)
else:
for r in roots: noCursor(c, r)
of nkAddr, nkHiddenAddr: