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
2be6077d
Commit
2be6077d
authored
Dec 18, 2012
by
Christoph Mallon
Browse files
bearch: Disallow passing Projs to get_irn_ops().
parent
a158f864
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bearch.c
View file @
2be6077d
...
...
@@ -41,14 +41,9 @@ arch_register_req_t const arch_no_requirement = {
*/
static
const
arch_irn_ops_t
*
get_irn_ops
(
const
ir_node
*
irn
)
{
if
(
is_Proj
(
irn
))
{
irn
=
get_Proj_pred
(
irn
);
assert
(
!
is_Proj
(
irn
));
}
ir_op
*
ops
=
get_irn_op
(
irn
);
const
arch_irn_ops_t
*
be_ops
=
get_op_ops
(
ops
)
->
be_ops
;
ir_op
const
*
const
op
=
get_irn_op
(
irn
);
arch_irn_ops_t
const
*
const
be_ops
=
get_op_ops
(
op
)
->
be_ops
;
assert
(
be_ops
);
return
be_ops
;
}
...
...
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