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
8aa9e4d9
Commit
8aa9e4d9
authored
Jan 24, 2015
by
Christoph Mallon
Browse files
beverify: Do not crash, when a node incorrectly has no input requirements.
parent
9aea9ec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beverify.c
View file @
8aa9e4d9
...
...
@@ -579,6 +579,13 @@ static void check_output_constraints(be_verify_reg_alloc_env_t *const env, const
static
void
check_input_constraints
(
be_verify_reg_alloc_env_t
*
const
env
,
ir_node
*
const
node
)
{
arch_register_req_t
const
**
const
in_reqs
=
arch_get_irn_register_reqs_in
(
node
);
if
(
!
in_reqs
&&
get_irn_arity
(
node
)
!=
0
)
{
verify_warnf
(
node
,
"%+F has no input requirements"
,
node
);
env
->
problem_found
=
true
;
return
;
}
/* verify input register */
foreach_irn_in
(
node
,
i
,
pred
)
{
if
(
is_Bad
(
pred
))
{
...
...
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