removed flawed thread analysis pass

This commit is contained in:
Araq 2014-04-20 14:00:04 +02:00
commit be6474af63
17 changed files with 23 additions and 476 deletions

View file

@ -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