From 4f9258e9afd653e920cf4453b116ffe14b306124 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 2 Jun 2007 20:25:32 +0000 Subject: [PATCH] fix wrong initialisation for ARITY_DYNAMIC [r14274] --- ir/be/scripts/generate_new_opcodes.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/be/scripts/generate_new_opcodes.pl b/ir/be/scripts/generate_new_opcodes.pl index 3c019d4a1..4f0cd475e 100755 --- a/ir/be/scripts/generate_new_opcodes.pl +++ b/ir/be/scripts/generate_new_opcodes.pl @@ -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"; -- 2.20.1