fix wrong initialisation for ARITY_DYNAMIC
authorMatthias Braun <matze@braunis.de>
Sat, 2 Jun 2007 20:25:32 +0000 (20:25 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 2 Jun 2007 20:25:32 +0000 (20:25 +0000)
[r14274]

ir/be/scripts/generate_new_opcodes.pl

index 3c019d4..4f0cd47 100755 (executable)
@@ -293,7 +293,7 @@ foreach my $op (keys(%nodes)) {
                        $temp .= "\tint       flags   = 0;\n";
 
                        if($arity == $ARITY_DYNAMIC) {
-                               $temp .= "\tint        arity   = 0;\n";
+                               $temp .= "\tint        arity   = -1;\n";
                                $temp .= "\tir_node  **in      = NULL;\n";
                        } elsif($arity == $ARITY_VARIABLE) {
                        } else {
@@ -305,7 +305,7 @@ foreach my $op (keys(%nodes)) {
                                }
                        }
                        if($out_arity == $ARITY_DYNAMIC) {
-                               $temp .= "\tint       n_res   = 0;\n";
+                               $temp .= "\tint       n_res   = -1;\n";
                        } elsif($out_arity == $ARITY_VARIABLE) {
                        } else {
                                $temp .= "\tint       n_res   = ${out_arity};\n";