summary refs log tree commit diff stats
path: root/compiler/vmgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-02-22 01:09:43 +0100
committerAraq <rumpf_a@web.de>2014-02-22 01:09:43 +0100
commitee74706c3b1e040dded3baf2ee3c05ae111c968a (patch)
tree1997239cf771c759dd8d8a5feb3fbc2e614e8c15 /compiler/vmgen.nim
parent6e584c42c2d340a31acad85add79b579b3e56f0b (diff)
downloadNim-ee74706c3b1e040dded3baf2ee3c05ae111c968a.tar.gz
fixed opcConv
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r--compiler/vmgen.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index b01514167..cddda7bd3 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -579,11 +579,10 @@ proc genAddSubInt(c: PCtx; n: PNode; dest: var TDest; opc: TOpcode) =
 
 proc genConv(c: PCtx; n, arg: PNode; dest: var TDest; opc=opcConv) =  
   let tmp = c.genx(arg)
-  c.gABx(n, opcSetType, tmp, genType(c, arg.typ))
   if dest < 0: dest = c.getTemp(n.typ)
   c.gABC(n, opc, dest, tmp)
   c.gABx(n, opc, 0, genType(c, n.typ))
-  if opc == opcConv: c.gABx(n, opc, 0, genType(c, arg.typ))
+  c.gABx(n, opc, 0, genType(c, arg.typ))
   c.freeTemp(tmp)
 
 proc genCard(c: PCtx; n: PNode; dest: var TDest) =
@@ -1504,7 +1503,7 @@ proc genProc(c: PCtx; s: PSym): int =
     c.gABC(body, opcEof, eofInstr.regA)
     c.optimizeJumps(result)
     s.offset = c.prc.maxSlots
-    #if s.name.s == "concatStyleInterpolation":
+    #if s.name.s == "traverse":
     #  c.echoCode(result)
     # echo renderTree(body)
     c.prc = oldPrc