From 17a2b811810bd6121b4beb93a5eb7c5804f1a2de Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 15 Sep 2011 15:49:03 +0200 Subject: [PATCH] do not use custom copy without custom attributes --- ir/be/scripts/generate_new_opcodes.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ir/be/scripts/generate_new_opcodes.pl b/ir/be/scripts/generate_new_opcodes.pl index af8e2f94b..0fbaeee77 100755 --- a/ir/be/scripts/generate_new_opcodes.pl +++ b/ir/be/scripts/generate_new_opcodes.pl @@ -669,7 +669,11 @@ EOF } my $copy_attr_func = $copy_attr{$attr_type}; if (!defined($copy_attr_func)) { - $copy_attr_func = $default_copy_attr; + if ($attr_type eq "") { + $copy_attr_func = "NULL"; + } else { + $copy_attr_func = $default_copy_attr; + } } if (defined($copy_attr_func)) { push(@obst_new_irop, "\tops.copy_attr = ${copy_attr_func};\n"); -- 2.20.1