From: Christoph Mallon Date: Sun, 4 Nov 2012 13:56:04 +0000 (+0100) Subject: Panic when get_call_result_proj() does not find the Proj. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=53d7517e84d32d3a5b554eb05e8e1e777d7a6920;p=libfirm Panic when get_call_result_proj() does not find the Proj. --- diff --git a/ir/be/ia32/ia32_x87.c b/ir/be/ia32/ia32_x87.c index 80a6117da..b5ca4edf9 100644 --- a/ir/be/ia32/ia32_x87.c +++ b/ir/be/ia32/ia32_x87.c @@ -1805,7 +1805,7 @@ static ir_node *get_call_result_proj(ir_node *call) return proj; } - return NULL; + panic("result Proj missing"); } static int sim_Asm(x87_state *const state, ir_node *const n) @@ -1863,7 +1863,6 @@ static int sim_Call(x87_state *state, ir_node *n) goto end_call; resproj = get_call_result_proj(n); - assert(resproj != NULL); reg = x87_get_irn_register(resproj); x87_push(state, arch_register_get_index(reg), resproj);