This commit is contained in:
Araq 2015-01-12 01:43:25 +01:00
commit b9079b8713
8 changed files with 46 additions and 9 deletions

View file

@ -1977,7 +1977,9 @@ proc expr(p: BProc, n: PNode, d: var TLoc) =
of skParam:
if sym.loc.r == nil or sym.loc.t == nil:
#echo "FAILED FOR PRCO ", p.prc.name.s
internalError(n.info, "expr: param not init " & sym.name.s & "_" & $sym.id)
#debug p.prc.typ.n
#echo renderTree(p.prc.ast, {renderIds})
internalError(n.info, "expr: param not init " & sym.name.s & "_" & $sym.id)
putLocIntoDest(p, d, sym.loc)
else: internalError(n.info, "expr(" & $sym.kind & "); unknown symbol")
of nkNilLit: