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

plobsing at svn.parrot.org plobsing at svn.parrot.org
Wed Sep 15 03:00:52 UTC 2010


Author: plobsing
Date: Wed Sep 15 03:00:51 2010
New Revision: 49011
URL: https://trac.parrot.org/parrot/changeset/49011

Log:
avoid creating unnecessary lexinfos for subs with :outer s

Modified:
   trunk/compilers/imcc/pbc.c

Modified: trunk/compilers/imcc/pbc.c
==============================================================================
--- trunk/compilers/imcc/pbc.c	Wed Sep 15 01:59:06 2010	(r49010)
+++ trunk/compilers/imcc/pbc.c	Wed Sep 15 03:00:51 2010	(r49011)
@@ -1306,7 +1306,7 @@
         }
     }
 
-    if (!lex_info && (unit->outer || need_lex)) {
+    if (!lex_info && need_lex) {
         lex_info = Parrot_pmc_new_noinit(interp, lex_info_id);
         VTABLE_init_pmc(interp, lex_info, sub_pmc);
     }


More information about the parrot-commits mailing list