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
7cfc603a
Commit
7cfc603a
authored
Aug 30, 2006
by
Michael Beck
Browse files
Use get_irn_n() instead of get_nodes_block() to allow unpinned mode
[r8143]
parent
6f81b751
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iredges.c
View file @
7cfc603a
...
...
@@ -269,9 +269,10 @@ void edges_notify_edge(ir_node *src, int pos, ir_node *tgt, ir_node *old_tgt, ir
{
edges_notify_edge_kind
(
src
,
pos
,
tgt
,
old_tgt
,
EDGE_KIND_NORMAL
,
irg
);
if
(
is_Block
(
src
))
{
ir_node
*
bl_tgt
=
tgt
?
get_nodes_block
(
skip_Proj
(
tgt
))
:
NULL
;
/* do not use get_nodes_block() here, it fails when running unpinned */
ir_node
*
bl_tgt
=
tgt
?
get_irn_n
(
skip_Proj
(
tgt
),
-
1
)
:
NULL
;
// ir_node *bl_old = old_tgt ? old_tgt : NULL;
ir_node
*
bl_old
=
old_tgt
?
get_
nodes_block
(
skip_Proj
(
old_tgt
))
:
NULL
;
ir_node
*
bl_old
=
old_tgt
?
get_
irn_n
(
skip_Proj
(
old_tgt
)
,
-
1
)
:
NULL
;
edges_notify_edge_kind
(
src
,
pos
,
bl_tgt
,
bl_old
,
EDGE_KIND_BLOCK
,
irg
);
}
}
...
...
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