From 53d7517e84d32d3a5b554eb05e8e1e777d7a6920 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 4 Nov 2012 14:56:04 +0100 Subject: [PATCH] Panic when get_call_result_proj() does not find the Proj. --- ir/be/ia32/ia32_x87.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.20.1