fixes #1551
This commit is contained in:
parent
a9a5766c66
commit
40601ada5f
1 changed files with 3 additions and 2 deletions
|
|
@ -1629,6 +1629,7 @@ 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:
|
||||||
|
if sfCompilerProc in result.flags:
|
||||||
result.flags = result.flags - {sfCompilerProc, sfExportC, sfImportC}
|
result.flags = result.flags - {sfCompilerProc, sfExportC, sfImportC}
|
||||||
result.loc.r = nil
|
result.loc.r = nil
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue