From 49bec3440763fcbac6bee60638cc8d699b12af11 Mon Sep 17 00:00:00 2001 From: Julian Oppermann Date: Tue, 23 Oct 2012 15:27:17 +0200 Subject: [PATCH] Don't set copy_attr_func to NULL for nodes without attributes. --- ir/be/scripts/generate_new_opcodes.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ir/be/scripts/generate_new_opcodes.pl b/ir/be/scripts/generate_new_opcodes.pl index 811ae0ddf..7cd267938 100755 --- a/ir/be/scripts/generate_new_opcodes.pl +++ b/ir/be/scripts/generate_new_opcodes.pl @@ -685,9 +685,8 @@ EOF } my $copy_attr_func = $copy_attr{$attr_type}; if (!defined($copy_attr_func)) { - if ($attr_type eq "") { - $copy_attr_func = "NULL"; - } else { + # don't set a copy_attr function if the node has no additional attributes. + if ($attr_type ne "") { $copy_attr_func = $default_copy_attr; } } -- 2.20.1