do not use custom copy without custom attributes
authorMatthias Braun <matze@braunis.de>
Thu, 15 Sep 2011 13:49:03 +0000 (15:49 +0200)
committerMatthias Braun <matze@braunis.de>
Tue, 20 Sep 2011 07:34:22 +0000 (09:34 +0200)
ir/be/scripts/generate_new_opcodes.pl

index af8e2f9..0fbaeee 100755 (executable)
@@ -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");