unused constants are optimized away

This commit is contained in:
Araq 2011-11-22 18:48:00 +01:00
commit fedc69f61a
4 changed files with 47 additions and 39 deletions

View file

@ -1674,7 +1674,7 @@ proc genArrayConstr(p: BProc, n: PNode, d: var TLoc) =
expr(p, n.sons[i], arr)
proc genComplexConst(p: BProc, sym: PSym, d: var TLoc) =
genConstPrototype(p.module, sym)
requestConstImpl(p, sym)
assert((sym.loc.r != nil) and (sym.loc.t != nil))
putLocIntoDest(p, d, sym.loc)