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
42deb58b
Commit
42deb58b
authored
Apr 13, 2011
by
Michael Beck
Browse files
BugFix: Fixed wrong todo fix.
parent
b76725c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irop.c
View file @
42deb58b
...
...
@@ -86,10 +86,11 @@ static void block_copy_attr(ir_graph *irg, const ir_node *old_node,
new_node
->
attr
.
block
.
block_visited
=
0
;
memset
(
&
new_node
->
attr
.
block
.
dom
,
0
,
sizeof
(
new_node
->
attr
.
block
.
dom
));
memset
(
&
new_node
->
attr
.
block
.
pdom
,
0
,
sizeof
(
new_node
->
attr
.
block
.
pdom
));
/* TODO: we should probably create a new entity. But we somehow have to
* patch the stuff at the same time */
new_node
->
attr
.
block
.
entity
=
NULL
;
new_node
->
attr
.
block
.
phis
=
NULL
;
/* It should be safe to copy the entity here, as it has no back-link to the old block.
* It serves just as a label number, so copying a labeled block results in an exact copy.
* This is at least what we need for DCE to work. */
new_node
->
attr
.
block
.
entity
=
old_node
->
attr
.
block
.
entity
;
new_node
->
attr
.
block
.
phis
=
NULL
;
INIT_LIST_HEAD
(
&
new_node
->
attr
.
block
.
succ_head
);
}
...
...
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