From 6a6c1557afcd038930e649e29d69cb85a5dc372b Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Mon, 23 May 2005 11:51:11 +0000 Subject: [PATCH] another similar bugfix [r5880] --- ir/opt/ldstopt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index 5bf3c9442..6dc6ba1bf 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -339,7 +339,6 @@ static compound_graph_path *get_accessed_path(ir_node *ptr) { return rec_get_accessed_path(ptr, 0); } - /** * optimize a Load */ @@ -366,7 +365,7 @@ static int optimize_load(ir_node *load) if (get_irn_op(ptr) == op_Sel) { ir_node *mem = get_Sel_mem(ptr); - if (get_irn_op(mem) == op_Alloc) { + if (get_irn_op(skip_Proj(mem)) == op_Alloc) { /* ok, check the types */ entity *ent = get_Sel_entity(ptr); type *s_type = get_entity_type(ent); -- 2.20.1