summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-09-12 15:31:55 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-09-12 23:04:19 +0200
commit259daf98cf8bdb89e537014b56f6ad38b99956e5 (patch)
tree7751db1501aefed616e016d8a4148cf5259140b7 /compiler/cgen.nim
parent646a5694215ecdc1ba902ed40c7ee27fbc7a7b3e (diff)
downloadNim-259daf98cf8bdb89e537014b56f6ad38b99956e5.tar.gz
fixes thread vars of non-global visibility
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 48b6e9633..620ee4887 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -788,7 +788,7 @@ proc genProc(m: BModule, prc: PSym) =
           genProcAux(generatedHeader, prc)
 
 proc genVarPrototypeAux(m: BModule, sym: PSym) =
-  assert(sfGlobal in sym.flags)
+  #assert(sfGlobal in sym.flags)
   useHeader(m, sym)
   fillLoc(sym.loc, locGlobalVar, sym.typ, mangleName(sym), OnHeap)
   if (lfNoDecl in sym.loc.flags) or containsOrIncl(m.declaredThings, sym.id):