summary refs log tree commit diff stats
path: root/compiler/spawn.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-07-04 07:37:24 +0200
committerGitHub <noreply@github.com>2020-07-04 07:37:24 +0200
commit1854d29781aff913ca6892cbf73df91b0399397e (patch)
tree4a71bc7988c753ef1acab28776edec691c6d27bd /compiler/spawn.nim
parent695154970d839add2fbbe9754e9e638511120729 (diff)
downloadNim-1854d29781aff913ca6892cbf73df91b0399397e.tar.gz
scoped memory management (#14790)
* fixes the regressions
* closes #13936
* scope based memory management implemented
* enabled tcontrolflow.nim test case
* final cleanups
Diffstat (limited to 'compiler/spawn.nim')
-rw-r--r--compiler/spawn.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/spawn.nim b/compiler/spawn.nim
index 9d837b993..15bed77b0 100644
--- a/compiler/spawn.nim
+++ b/compiler/spawn.nim
@@ -10,7 +10,7 @@
 ## This module implements threadpool's ``spawn``.
 
 import ast, types, idents, magicsys, msgs, options, modulegraphs,
-  lowerings, liftdestructors
+  lowerings, liftdestructors, renderer
 from trees import getMagic, getRoot
 
 proc callProc(a: PNode): PNode =
@@ -321,7 +321,7 @@ proc wrapProcForSpawn*(g: ModuleGraph; owner: PSym; spawnExpr: PNode; retType: P
     result = newNodeI(nkStmtList, n.info)
 
   if n.kind notin nkCallKinds:
-    localError(g.config, n.info, "'spawn' takes a call expression")
+    localError(g.config, n.info, "'spawn' takes a call expression; got " & $n)
     return
   if optThreadAnalysis in g.config.globalOptions:
     if {tfThread, tfNoSideEffect} * n[0].typ.flags == {}: