projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small BugFix
[libfirm]
/
ir
/
ir
/
iropt_t.h
diff --git
a/ir/ir/iropt_t.h
b/ir/ir/iropt_t.h
index
450261b
..
f6c3625
100644
(file)
--- a/
ir/ir/iropt_t.h
+++ b/
ir/ir/iropt_t.h
@@
-86,7
+86,7
@@
ir_node *optimize_in_place_2(ir_node *n);
*/
static INLINE tarval *
value_of(ir_node *n) {
*/
static INLINE tarval *
value_of(ir_node *n) {
- if ((n != NULL) &&
(get_irn_op(n) == op_Const
))
+ if ((n != NULL) &&
is_Const(n
))
return get_Const_tarval(n); /* might return tarval_bad */
else
return tarval_bad;
return get_Const_tarval(n); /* might return tarval_bad */
else
return tarval_bad;