make tests green again

This commit is contained in:
Andreas Rumpf
2018-04-21 17:01:27 +02:00
parent 4f10b5edb6
commit 14046d975d

View File

@@ -1693,7 +1693,7 @@ proc evalConstExprAux(module: PSym; cache: IdentCache; prc: PSym, n: PNode,
newSeq(tos.slots, c.prc.maxSlots)
#for i in 0 ..< c.prc.maxSlots: tos.slots[i] = newNode(nkEmpty)
result = rawExecute(c, start, tos).regToNode
if result.info.line < 0: result.info = n.info
if result.info.col < 0: result.info = n.info
proc evalConstExpr*(module: PSym; cache: IdentCache, e: PNode): PNode =
result = evalConstExprAux(module, cache, nil, e, emConst)