projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b69fead
)
use is_Const()
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 22 May 2008 02:42:10 +0000
(
02:42
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 22 May 2008 02:42:10 +0000
(
02:42
+0000)
[r19719]
ir/ir/iropt_t.h
patch
|
blob
|
history
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) {
- 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;