X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fldstopt.c;h=2e9aeeab0e5e56476b30a94263b25ee65fdeb69d;hb=d2dc2564b47d9c113d7e6e598574e9733627fcca;hp=5aa9947dbc147cb0a3384daea240fb06df88158a;hpb=486f1e4abd8cc35ffb4839b7254cdb70b98f38ee;p=libfirm diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index 5aa9947db..2e9aeeab0 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -421,7 +421,7 @@ static unsigned optimize_load(ir_node *load) * like x = new O; x->t; */ if (info->projs[pn_Load_X_except]) { - if (get_irn_op(ptr) == op_Sel) { + if (is_Sel(ptr)) { ir_node *mem = get_Sel_mem(ptr); if (get_irn_op(skip_Proj(mem)) == op_Alloc) {