This commit is contained in:
Andreas Rumpf
2020-09-12 23:11:38 +02:00
committed by GitHub
parent 60ad95f799
commit 1df5cfba52
2 changed files with 22 additions and 1 deletions

View File

@@ -396,7 +396,7 @@ proc deps(c: var Partitions; dest, src: PNode) =
(src.sym.kind in {skLet, skParam, skForVar} and hasDisabledAsgn(src.sym.typ))):
c.s[vid].flags.incl preventCursor
if hasDestructor(src.typ):
if src.kind == nkSym and hasDestructor(src.typ):
rhsIsSink(c, src)
proc traverse(c: var Partitions; n: PNode) =