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
987260b3
Commit
987260b3
authored
Jan 09, 2016
by
yb9976
Browse files
Do not set a node as its own operand.
This fixes opt/fehler314.c.
parent
9114e7bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/irconsconfirm.c
View file @
987260b3
...
...
@@ -370,8 +370,10 @@ static void handle_if(ir_node *block, ir_node *cmp, ir_relation rel, env_t *env)
if
(
rc
==
NULL
)
rc
=
new_r_Confirm
(
block
,
right
,
left
,
rel
);
set_irn_n
(
succ
,
pos
,
rc
);
DB
((
dbg
,
LEVEL_2
,
"Replacing input %d of node %+F with %+F
\n
"
,
pos
,
succ
,
rc
));
if
(
succ
!=
rc
)
{
set_irn_n
(
succ
,
pos
,
rc
);
DB
((
dbg
,
LEVEL_2
,
"Replacing input %d of node %+F with %+F
\n
"
,
pos
,
succ
,
rc
));
}
env
->
num_confirms
+=
1
;
}
...
...
Write
Preview
Supports
Markdown
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