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
26c150fa
Commit
26c150fa
authored
Nov 07, 2005
by
Michael Beck
Browse files
Bugfix: Must check against end block, not end node ...
[r6874]
parent
cc273381
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/escape_ana.c
View file @
26c150fa
...
...
@@ -78,10 +78,10 @@ static int is_method_leaving_raise(ir_node *raise)
}
n
=
get_irn_out
(
proj
,
0
);
if
(
get_irn_op
(
n
)
==
op_End
)
return
1
;
assert
(
is_Block
(
n
)
&&
"Argh: user of ProjX is no block"
);
assert
(
is_Block
(
n
)
&&
"Argh: user of ProjX is neither block for End"
);
if
(
n
==
get_irg_end_block
(
get_irn_irg
(
n
)))
return
1
;
/* ok, we get here so the raise will not leave the function */
return
0
;
...
...
@@ -99,7 +99,6 @@ static int do_escape(ir_node *n) {
for
(
i
=
get_irn_n_outs
(
n
)
-
1
;
i
>=
0
;
--
i
)
{
ir_node
*
succ
=
get_irn_out
(
n
,
i
);
ir_op
*
op
=
get_irn_op
(
succ
);
switch
(
get_irn_opcode
(
succ
))
{
case
iro_Store
:
...
...
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