fixes thread vars of non-global visibility

This commit is contained in:
Andreas Rumpf 2016-09-12 15:31:55 +02:00
commit 259daf98cf
2 changed files with 3 additions and 2 deletions

View file

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