This commit is contained in:
Andreas Rumpf
2016-05-11 21:16:26 +02:00
parent 11d0f3f7ec
commit 685b8963da
2 changed files with 3 additions and 2 deletions

View File

@@ -331,7 +331,8 @@ proc getTemp(p: BProc, t: PType, result: var TLoc; needsInit=false) =
linefmt(p, cpsLocals, "$1 $2;$n", getTypeDesc(p.module, t), result.r)
result.k = locTemp
#result.a = - 1
result.t = getUniqueType(t)
result.t = t
#result.t = getUniqueType(t)
result.s = OnStack
result.flags = {}
constructLoc(p, result, not needsInit)

View File

@@ -95,7 +95,7 @@ proc getCurrOwner(c: PTransf): PSym =
proc newTemp(c: PTransf, typ: PType, info: TLineInfo): PNode =
let r = newSym(skTemp, getIdent(genPrefix), getCurrOwner(c), info)
r.typ = skipTypes(typ, {tyGenericInst})
r.typ = typ #skipTypes(typ, {tyGenericInst})
incl(r.flags, sfFromGeneric)
let owner = getCurrOwner(c)
if owner.isIterator and not c.tooEarly: