summary refs log tree commit diff stats
path: root/compiler/vm.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/vm.nim')
-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}