Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
49bec344
Commit
49bec344
authored
Oct 23, 2012
by
uqxyd
Browse files
Don't set copy_attr_func to NULL for nodes without attributes.
parent
3ab7a90b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_new_opcodes.pl
View file @
49bec344
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment