projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb88cfd
)
use is_Const()
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 22 Nov 2007 16:27:42 +0000
(16:27 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 22 Nov 2007 16:27:42 +0000
(16:27 +0000)
[r16825]
ir/be/begnuas.c
patch
|
blob
|
history
diff --git
a/ir/be/begnuas.c
b/ir/be/begnuas.c
index
86ac7bc
..
df927d5
100644
(file)
--- a/
ir/be/begnuas.c
+++ b/
ir/be/begnuas.c
@@
-435,7
+435,7
@@
static int ent_is_string_const(ir_entity *ent)
n = get_compound_ent_n_values(ent);
for (i = 0; i < n; ++i) {
ir_node *irn = get_compound_ent_value(ent, i);
- if
(get_irn_opcode(irn) != iro_Const
)
+ if
(! is_Const(irn)
)
return 0;
c = (int) get_tarval_long(get_Const_tarval(irn));