fixes #1551
This commit is contained in:
parent
a9a5766c66
commit
40601ada5f
1 changed files with 3 additions and 2 deletions
|
|
@ -1629,8 +1629,9 @@ proc instantiateCreateFlowVarCall(c: PContext; t: PType;
|
||||||
result = c.semGenerateInstance(c, sym, bindings, info)
|
result = c.semGenerateInstance(c, sym, bindings, info)
|
||||||
# since it's an instantiation, we unmark it as a compilerproc. Otherwise
|
# since it's an instantiation, we unmark it as a compilerproc. Otherwise
|
||||||
# codegen would fail:
|
# codegen would fail:
|
||||||
result.flags = result.flags - {sfCompilerProc, sfExportC, sfImportC}
|
if sfCompilerProc in result.flags:
|
||||||
result.loc.r = nil
|
result.flags = result.flags - {sfCompilerProc, sfExportC, sfImportC}
|
||||||
|
result.loc.r = nil
|
||||||
|
|
||||||
proc setMs(n: PNode, s: PSym): PNode =
|
proc setMs(n: PNode, s: PSym): PNode =
|
||||||
result = n
|
result = n
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue