mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 23:05:27 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user