tstmtexprs.nim works again

This commit is contained in:
Araq
2014-02-27 23:28:15 +01:00
parent f0a70c7aae
commit c4f9c3b53e
2 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ type
slotTempInt, # some temporary int
slotTempFloat, # some temporary float
slotTempStr, # some temporary string
slotTempComplex # some complex temporary (n.sons field is used)
slotTempComplex # some complex temporary (s.node field is used)
PProc* = ref object
blocks*: seq[TBlock] # blocks; temp data structure

View File

@@ -944,9 +944,9 @@ proc genAddrDeref(c: PCtx; n: PNode; dest: var TDest; opc: TOpcode;
if gfAddrOf notin flags and fitsRegister(n.typ):
c.gABC(n, opcNodeToReg, dest, dest)
elif c.prc.slots[tmp].kind >= slotTempUnknown:
gABC(c, n, opcAddrReg, dest, tmp)
else:
gABC(c, n, opcAddrNode, dest, tmp)
else:
gABC(c, n, opcAddrReg, dest, tmp)
c.freeTemp(tmp)
proc whichAsgnOpc(n: PNode): TOpcode =