simple program works with --newruntime

This commit is contained in:
Araq 2019-04-02 10:42:58 +02:00
commit 0b96b135f8
3 changed files with 14 additions and 12 deletions

View file

@ -1145,7 +1145,8 @@ proc genReset(p: BProc, n: PNode) =
genTypeInfo(p.module, skipTypes(a.t, {tyVar}), n.info))
proc genDefault(p: BProc; n: PNode; d: var TLoc) =
resetLoc(p, d)
if d.k == locNone: getTemp(p, n.typ, d, needsInit=true)
else: resetLoc(p, d)
proc rawGenNew(p: BProc, a: TLoc, sizeExpr: Rope) =
var sizeExpr = sizeExpr