From: Michael Beck Date: Thu, 22 Nov 2007 16:27:42 +0000 (+0000) Subject: use is_Const() X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4cff8f3a92344642f107bd9ab384fa8f000b5af4;p=libfirm use is_Const() [r16825] --- diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index 86ac7bc88..df927d554 100644 --- 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));