removed flawed thread analysis pass
This commit is contained in:
parent
39e4e3f205
commit
be6474af63
17 changed files with 23 additions and 476 deletions
|
|
@ -113,7 +113,7 @@ proc useVar(a: PEffects, n: PNode) =
|
|||
if {sfGlobal, sfThread} * s.flags == {sfGlobal} and s.kind == skVar:
|
||||
when trackGlobals:
|
||||
a.addUse(copyNode(n))
|
||||
if tfHasGCedMem in s.typ.flags:
|
||||
if tfHasGCedMem in s.typ.flags or s.typ.isGCedMem:
|
||||
message(n.info, warnGcUnsafe, renderTree(n))
|
||||
a.gcUnsafe = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue