dfa.nim: track object/tuple field accesses more precisely; sink(o.x); sink(o.y) needs to compile; activate the tuple unpacking transf.nim bugfix

This commit is contained in:
Araq
2019-04-15 17:57:59 +02:00
parent 01f09567c4
commit 045e026d0e
8 changed files with 135 additions and 47 deletions

View File

@@ -48,7 +48,7 @@ proc canonKind(n: PNode): TNodeKind =
proc sameKinds(a, b: PNode): bool {.inline.} =
result = a.kind == b.kind or a.canonKind == b.canonKind
proc sameTrees(a, b: PNode): bool =
proc sameTrees*(a, b: PNode): bool =
if sameKinds(a, b):
case a.kind
of nkSym: result = a.sym == b.sym