[svn:parrot] r47768 - trunk/compilers/imcc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Tue Jun 22 21:06:40 UTC 2010
Author: chromatic
Date: Tue Jun 22 21:06:39 2010
New Revision: 47768
URL: https://trac.parrot.org/parrot/changeset/47768
Log:
[IMCC] Tidied code; no functional changes.
Modified:
trunk/compilers/imcc/pbc.c
Modified: trunk/compilers/imcc/pbc.c
==============================================================================
--- trunk/compilers/imcc/pbc.c Tue Jun 22 19:20:42 2010 (r47767)
+++ trunk/compilers/imcc/pbc.c Tue Jun 22 21:06:39 2010 (r47768)
@@ -2090,10 +2090,10 @@
e_pbc_end_sub(PARROT_INTERP, SHIM(void *param), ARGIN(IMC_Unit *unit))
{
ASSERT_ARGS(e_pbc_end_sub)
- Instruction *ins;
+ Instruction *ins = unit->instructions;
int pragma;
- if (!unit->instructions)
+ if (!ins)
return 0;
/*
@@ -2101,7 +2101,6 @@
* This is *dangerous*: all possible global state can be messed
* up, e.g. when that sub starts loading bytecode
*/
- ins = unit->instructions;
/* we run only PCC subs */
if (!ins->symregs[0] || !ins->symregs[0]->pcc_sub)
More information about the parrot-commits
mailing list