X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fldstopt.c;h=6dc6ba1bf4f1d72a988cbc1cc588ecf0d4b6c08a;hb=98c8808ee1d34300860bb78185558e1731a99368;hp=5bf3c94429749f6f63a03ca9eef30221e8a50a42;hpb=adf42c90252cbcea388dd45d5f840a5459d9446d;p=libfirm 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);