From 4cc079f84209ec86f1e2a994d2c21e312022b227 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 26 Sep 2008 17:05:49 +0000 Subject: [PATCH] SymConsts represent constant entities irrespective of variability. [r22297] --- ir/opt/ldstopt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index 91347a7be..c77552ec3 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -257,10 +257,7 @@ static ir_entity *find_constant_entity(ir_node *ptr) { for (;;) { if (is_SymConst(ptr) && get_SymConst_kind(ptr) == symconst_addr_ent) { - ir_entity *ent = get_SymConst_entity(ptr); - if (variability_constant == get_entity_variability(ent)) - return ent; - return NULL; + return get_SymConst_entity(ptr); } else if (is_Sel(ptr)) { ir_entity *ent = get_Sel_entity(ptr); ir_type *tp = get_entity_owner(ent); -- 2.20.1