fixes a critical codegen bug triggered by .async
This commit is contained in:
parent
0c7d52e34c
commit
ffe51966b9
4 changed files with 72 additions and 52 deletions
|
|
@ -760,7 +760,7 @@ proc requestConstImpl(p: BProc, sym: PSym) =
|
|||
var m = p.module
|
||||
useHeader(m, sym)
|
||||
if sym.loc.k == locNone:
|
||||
fillLoc(sym.loc, locData, sym.typ, mangleName(sym), OnUnknown)
|
||||
fillLoc(sym.loc, locData, sym.typ, mangleName(sym), OnStatic)
|
||||
if lfNoDecl in sym.loc.flags: return
|
||||
# declare implementation:
|
||||
var q = findPendingModule(m, sym)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue