This commit is contained in:
Araq
2014-10-05 03:24:39 +02:00
parent a9a5766c66
commit 40601ada5f

View File

@@ -1629,8 +1629,9 @@ proc instantiateCreateFlowVarCall(c: PContext; t: PType;
result = c.semGenerateInstance(c, sym, bindings, info)
# since it's an instantiation, we unmark it as a compilerproc. Otherwise
# codegen would fail:
result.flags = result.flags - {sfCompilerProc, sfExportC, sfImportC}
result.loc.r = nil
if sfCompilerProc in result.flags:
result.flags = result.flags - {sfCompilerProc, sfExportC, sfImportC}
result.loc.r = nil
proc setMs(n: PNode, s: PSym): PNode =
result = n