Remove unnecessary changes.

This commit is contained in:
David Anderson 2014-08-17 01:21:35 -07:00
parent cef9d9d162
commit 56cf6e723e
2 changed files with 3 additions and 20 deletions

View File

@ -7586,10 +7586,10 @@ static void doreturn(void)
* it stays on the heap for the moment, and it is removed -usually- at
* the end of the expression/statement, see expression() in SC3.C)
*/
if (!is_variadic(curfunc)) {
address(sub,sALT); /* ALT = destination */
} else {
if (is_variadic(curfunc)) {
load_hidden_arg();
} else {
address(sub,sALT); /* ALT = destination */
}
arraysize=calc_arraysize(dim,numdim,0);
memcopy(arraysize*sizeof(cell)); /* source already in PRI */

View File

@ -469,23 +469,6 @@ SC_FUNC void address(symbol *sym,regid reg)
code_idx+=opcodes(1)+opargs(1);
}
// Compute an address to the storage slot of a local variable.
SC_FUNC void address_slot(symbol *sym, regid reg)
{
assert(sym->vclass==sLOCAL);
switch (reg) {
case sPRI:
stgwrite("\taddr.pri ");
break;
case sALT:
stgwrite("\taddr.alt ");
break;
} /* switch */
outval(sym->addr,TRUE);
markusage(sym,uREAD);
code_idx+=opcodes(1)+opargs(1);
}
static void addr_reg(int val, regid reg)
{
if (reg == sPRI)