[svn:parrot] r41887 - trunk/compilers/pct/src/PCT

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Fri Oct 16 13:47:43 UTC 2009


Author: pmichaud
Date: Fri Oct 16 13:47:42 2009
New Revision: 41887
URL: https://trac.parrot.org/parrot/changeset/41887

Log:
[pct]:  Use explicit Undef check for parseactions instead of get_bool.

Modified:
   trunk/compilers/pct/src/PCT/HLLCompiler.pir

Modified: trunk/compilers/pct/src/PCT/HLLCompiler.pir
==============================================================================
--- trunk/compilers/pct/src/PCT/HLLCompiler.pir	Fri Oct 16 10:07:28 2009	(r41886)
+++ trunk/compilers/pct/src/PCT/HLLCompiler.pir	Fri Oct 16 13:47:42 2009	(r41887)
@@ -387,7 +387,8 @@
     null action
     if target == 'parse' goto have_action
     parseactions = self.'parseactions'()
-    unless parseactions goto have_action
+    $I0 = isa parseactions, ['Undef']
+    if $I0 goto have_action
     ##  if parseactions is a Class or array, make action directly from that
     $I0 = isa parseactions, 'Class'
     if $I0 goto action_make


More information about the parrot-commits mailing list