X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fescape_ana.c;h=92a6d72b9b08a3390efbdb2c41f57b73a8750c59;hb=fdbe9a6bb4824810b57bb946d03e39f981641fb7;hp=106abe4b764e7f322cc6856f14e1c43799f66d77;hpb=f3e6f325b23d8b25323e491ce2eb675f5f2ba548;p=libfirm diff --git a/ir/opt/escape_ana.c b/ir/opt/escape_ana.c index 106abe4b7..92a6d72b9 100644 --- a/ir/opt/escape_ana.c +++ b/ir/opt/escape_ana.c @@ -33,9 +33,7 @@ * * A fast and simple Escape analysis. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include "iroptimize.h" @@ -122,7 +120,7 @@ static int is_method_leaving_raise(ir_node *raise) static ir_node *is_depend_alloc(ir_node *adr) { ir_node *alloc; - if (get_irn_op(adr) != op_Sel) + if (!is_Sel(adr)) return NULL; /* should be a simple Sel */ @@ -130,7 +128,7 @@ static ir_node *is_depend_alloc(ir_node *adr) { return NULL; alloc = skip_Proj(get_Sel_ptr(adr)); - if (get_irn_op(alloc) != op_Alloc) + if (!is_Alloc(alloc)) return NULL; /* hmm, we depend on this Alloc */