X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_osr.c;h=3253615ae658a8b6943c2e311f8d60db248c79d7;hb=edb11cbddcf9e4fef1bde33d576003af8a6a3323;hp=4bf9050107070ee8d5c382bc57dd52d6292e47ea;hpb=4b1138a9eee25ce11adbb7d7162eaa49421e8b51;p=libfirm diff --git a/ir/opt/opt_osr.c b/ir/opt/opt_osr.c index 4bf905010..3253615ae 100644 --- a/ir/opt/opt_osr.c +++ b/ir/opt/opt_osr.c @@ -53,6 +53,7 @@ #include "array.h" #include "firmstat.h" #include "xmalloc.h" +#include "error.h" /** The debug handle. */ DEBUG_ONLY(static firm_dbg_module_t *dbg;) @@ -305,7 +306,7 @@ static ir_node *do_apply(ir_opcode code, dbg_info *db, ir_node *op1, ir_node *op result = new_rd_Sub(db, irg, block, op1, op2, mode); break; default: - assert(0); + panic("Unsupported opcode"); result = NULL; } return result; @@ -1117,7 +1118,7 @@ static ir_node *applyOneEdge(ir_node *iv, ir_node *rc, LFTR_edge *e, iv_env *env DB((dbg, LEVEL_4, " - %+F", tv_r)); break; default: - assert(0); + panic("Unsupported opcode"); tv = tarval_bad; }