summary refs log tree commit diff stats
path: root/compiler/spawn.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-10-19 16:21:01 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-10-20 08:11:07 +0200
commit61ea85687c2950bb40c23a1a7cd2c13473bd9662 (patch)
tree85aedf0d63974a22dd63ae672a7aef2b2d28bffb /compiler/spawn.nim
parent832b0a0232e610c1935aaf6ce0b45f69199f8a19 (diff)
downloadNim-61ea85687c2950bb40c23a1a7cd2c13473bd9662.tar.gz
refactoring: --newruntime consists of 3 different switches
Diffstat (limited to 'compiler/spawn.nim')
-rw-r--r--compiler/spawn.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/spawn.nim b/compiler/spawn.nim
index 7980ac434..b48c67fd3 100644
--- a/compiler/spawn.nim
+++ b/compiler/spawn.nim
@@ -65,7 +65,7 @@ proc addLocalVar(g: ModuleGraph; varSection, varInit: PNode; owner: PSym; typ: P
   vpart.sons[2] = if varInit.isNil: v else: vpart[1]
   varSection.add vpart
   if varInit != nil:
-    if useShallowCopy and typeNeedsNoDeepCopy(typ) or optNimV2 in g.config.globalOptions:
+    if useShallowCopy and typeNeedsNoDeepCopy(typ) or optTinyRtti in g.config.globalOptions:
       varInit.add newFastAsgnStmt(newSymNode(result), v)
     else:
       let deepCopyCall = newNodeI(nkCall, varInit.info, 3)