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
7a9e53b2
Commit
7a9e53b2
authored
Sep 03, 2014
by
yb9976
Browse files
Use bool instead of int.
parent
ecb78332
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
7a9e53b2
...
...
@@ -1709,15 +1709,15 @@ static bool only_one_user(const ir_node *node)
* Returns non-zero if a node is a Phi node
* with all predecessors constant.
*/
static
int
is_const_Phi
(
ir_node
*
n
)
static
bool
is_const_Phi
(
ir_node
*
n
)
{
if
(
!
is_Phi
(
n
)
||
get_irn_arity
(
n
)
==
0
)
return
0
;
return
false
;
foreach_irn_in_r
(
n
,
i
,
pred
)
{
if
(
!
is_Const
(
pred
))
return
0
;
return
false
;
}
return
1
;
return
true
;
}
/**
...
...
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