Author: julianalbo
Date: Tue Aug 19 11:08:01 2008
New Revision: 30348

Modified:
   trunk/src/interpreter.c

Log:
add an assertion that prevents segfault RT#58044

Modified: trunk/src/interpreter.c
==============================================================================
--- trunk/src/interpreter.c     (original)
+++ trunk/src/interpreter.c     Tue Aug 19 11:08:01 2008
@@ -275,6 +275,10 @@
     opinfo = &interp->op_info_table[*pc];
 
     /* first arguments - PIC needs it */
+
+    /* check for RT#58044 */
+    PARROT_ASSERT(CONTEXT(interp)->n_regs_used);
+
     prederef_args(pc_prederef, interp, pc, opinfo);
 
     switch (type) {

Reply via email to