X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Farch%2Farchop.c;h=a23c467e3aa5a082f5995c38320cf3c486b0f483;hb=dd4cd761ab637d4488c7e29f49843b1b02366acf;hp=1264df948707a5f0ffa452a4ea695728f3d4776e;hpb=816aa2f422d57ebc0b513fa3ca66a90fa6058387;p=libfirm diff --git a/ir/arch/archop.c b/ir/arch/archop.c index 1264df948..a23c467e3 100644 --- a/ir/arch/archop.c +++ b/ir/arch/archop.c @@ -41,6 +41,7 @@ #include "iropt_dbg.h" #include "archop.h" #include "irop.h" +#include "error.h" /* when we need verifying */ #ifdef NDEBUG @@ -69,8 +70,7 @@ new_rd_Min(dbg_info *db, ir_graph *irg, ir_node *block, ir_node *res; if (! op_Min) { - assert(0); - return NULL; + panic("cannot create Min node, not allowed"); } in[0] = op1; @@ -92,8 +92,7 @@ new_rd_Max(dbg_info *db, ir_graph *irg, ir_node *block, ir_node *res; if (! op_Max) { - assert(0); - return NULL; + panic("cannot create Max node, not allowed"); } in[0] = op1; @@ -240,7 +239,7 @@ ir_node *arch_transform_node_Mux(ir_node *n) return n; cmp = get_Proj_pred(proj); - if (get_irn_op(cmp) == op_Cmp) { + if (is_Cmp(cmp)) { ir_node *a = get_Cmp_left(cmp); ir_node *b = get_Cmp_right(cmp); ir_node *t = get_Mux_true(n);