From 56cf6e723e745fb16b8ee879386730068bc42039 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 17 Aug 2014 01:21:35 -0700 Subject: [PATCH] Remove unnecessary changes. --- sourcepawn/compiler/sc1.c | 6 +++--- sourcepawn/compiler/sc4.c | 17 ----------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index fbe1983b..154e33c4 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -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 */ diff --git a/sourcepawn/compiler/sc4.c b/sourcepawn/compiler/sc4.c index 0b00cc5e..214d4e50 100644 --- a/sourcepawn/compiler/sc4.c +++ b/sourcepawn/compiler/sc4.c @@ -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)