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

NotFound at svn.parrot.org NotFound at svn.parrot.org
Sat Jun 6 20:27:27 UTC 2009


Author: NotFound
Date: Sat Jun  6 20:27:26 2009
New Revision: 39436
URL: https://trac.parrot.org/parrot/changeset/39436

Log:
[imcc] die politely on get_args and other opcodes when compiling pasm

Modified:
   trunk/compilers/imcc/parser_util.c

Modified: trunk/compilers/imcc/parser_util.c
==============================================================================
--- trunk/compilers/imcc/parser_util.c	Sat Jun  6 19:41:20 2009	(r39435)
+++ trunk/compilers/imcc/parser_util.c	Sat Jun  6 20:27:26 2009	(r39436)
@@ -330,7 +330,9 @@
     /* in constant */
     int dirs       = 1;
 
-    PARROT_ASSERT(r[0]);
+    if (r[0] == NULL)
+        IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
+                    "The opcode '%s' needs arguments", name);
 
     r[0]           = mk_const(interp, r[0]->name, 'P');
     r[0]->pmc_type = enum_class_FixedIntegerArray;


More information about the parrot-commits mailing list