[svn:parrot] r42265 - trunk/compilers/imcc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Thu Nov 5 09:44:10 UTC 2009


Author: chromatic
Date: Thu Nov  5 09:44:10 2009
New Revision: 42265
URL: https://trac.parrot.org/parrot/changeset/42265

Log:
[IMCC] Used the "new" way to see if an IMC_Unit represents a PCC sub in IMCC's
find_basic_blocks().  Yes, that makes me chuckle too.  See RT #48280.

Modified:
   trunk/compilers/imcc/cfg.c

Modified: trunk/compilers/imcc/cfg.c
==============================================================================
--- trunk/compilers/imcc/cfg.c	Thu Nov  5 08:51:26 2009	(r42264)
+++ trunk/compilers/imcc/cfg.c	Thu Nov  5 09:44:10 2009	(r42265)
@@ -278,10 +278,9 @@
         }
     }
 
-    /* RT #48280: Now the way to check for a sub is unit->type */
     ins = unit->instructions;
 
-    if (first && ins->type == ITLABEL && (ins->symregs[0]->type & VT_PCC_SUB)) {
+    if (unit->type & IMC_PCCSUB) {
         IMCC_debug(interp, DEBUG_CFG, "pcc_sub %s nparams %d\n",
                 ins->symregs[0]->name, ins->symregs[0]->pcc_sub->nargs);
         expand_pcc_sub(interp, unit, ins);


More information about the parrot-commits mailing list