From 4cff8f3a92344642f107bd9ab384fa8f000b5af4 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 22 Nov 2007 16:27:42 +0000 Subject: [PATCH] use is_Const() [r16825] --- ir/be/begnuas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.20.1