summary refs log tree commit diff stats
path: root/compiler/sempass2.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-04-20 14:00:04 +0200
committerAraq <rumpf_a@web.de>2014-04-20 14:00:04 +0200
commitbe6474af638b72aabeb70cfc5f477cc5fb7af0ce (patch)
treef25002ea96fcfbd69997e22208c55eb3930eeaf0 /compiler/sempass2.nim
parent39e4e3f20570e804e3059574eafe8f78b2d8a9df (diff)
downloadNim-be6474af638b72aabeb70cfc5f477cc5fb7af0ce.tar.gz
removed flawed thread analysis pass
Diffstat (limited to 'compiler/sempass2.nim')
-rw-r--r--compiler/sempass2.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim
index 72666e47d..295321f4b 100644
--- a/compiler/sempass2.nim
+++ b/compiler/sempass2.nim
@@ -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