[svn:parrot] r49772 - trunk/compilers/imcc
petdance at svn.parrot.org
petdance at svn.parrot.org
Wed Nov 3 04:57:49 UTC 2010
Author: petdance
Date: Wed Nov 3 04:57:49 2010
New Revision: 49772
URL: https://trac.parrot.org/parrot/changeset/49772
Log:
removed an unused variable, and consted a pointer
Modified:
trunk/compilers/imcc/optimizer.c
Modified: trunk/compilers/imcc/optimizer.c
==============================================================================
--- trunk/compilers/imcc/optimizer.c Wed Nov 3 03:52:54 2010 (r49771)
+++ trunk/compilers/imcc/optimizer.c Wed Nov 3 04:57:49 2010 (r49772)
@@ -803,7 +803,6 @@
{
ASSERT_ARGS(eval_ins)
opcode_t eval[4], *pc;
- int opnum;
int i;
op_info_t *op_info = (op_info_t *)parrot_hash_get(interp, interp->op_hash, (void *)op);
if (!op_info || !STREQ(op_info->full_name, op))
@@ -822,7 +821,7 @@
case PARROT_ARG_S:
eval[i + 1] = i; /* regs used are I0, I1, I2 */
if (ops <= 2 || i) { /* fill source regs */
- SymReg *r_ = r[i]->type & VT_CONSTP ? r[i]->reg : r[i];
+ SymReg * const r_ = r[i]->type & VT_CONSTP ? r[i]->reg : r[i];
switch (r[i]->set) {
case 'I':
REG_INT(interp, i) = IMCC_int_from_reg(interp, r_);
More information about the parrot-commits
mailing list