summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-02-25 18:08:40 +0100
committerAraq <rumpf_a@web.de>2014-02-25 18:08:40 +0100
commitad79b125e7ae9a703b8ea900ea3dd760ee1ff0c9 (patch)
tree90f106d6a4be049963dbe4a2fbd4c399e307d848
parentb7bb56bdca9ced8fdc0dea18dc54f732c6e17d3e (diff)
downloadNim-ad79b125e7ae9a703b8ea900ea3dd760ee1ff0c9.tar.gz
bootstrapping should work again
-rw-r--r--compiler/vm.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim
index 108979739..0a3c17e8e 100644
--- a/compiler/vm.nim
+++ b/compiler/vm.nim
@@ -115,10 +115,9 @@ proc createStrKeepNode(x: var TRegister) =
   elif x.node.kind == nkNilLit:
     system.reset(x.node[])
     x.node.kind = nkStrLit
-  else:
+  elif x.node.kind notin {nkStrLit..nkTripleStrLit}:
     # XXX this is hacky; tests/txmlgen triggers it:
     x.node = newNode(nkStrLit)
-    #if x.node.kind notin {nkStrLit..nkTripleStrLit}:
     #  debug x.node
     #assert x.node.kind in {nkStrLit..nkTripleStrLit}