From dbe6718705a162ea25d8035b95595f0cf167637c Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Fri, 6 Aug 2010 19:01:11 +0000 Subject: [PATCH] Panic in case of an invalid solution. [r27891] --- ir/be/bepbqpcoloring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/be/bepbqpcoloring.c b/ir/be/bepbqpcoloring.c index 33e985439..2ae4f11f8 100644 --- a/ir/be/bepbqpcoloring.c +++ b/ir/be/bepbqpcoloring.c @@ -754,7 +754,8 @@ static void be_pbqp_coloring(be_chordal_env_t *env) num solution = get_solution(pbqp_alloc_env.pbqp_inst); - assert(solution != INF_COSTS && "No PBQP solution found"); + if (solution == INF_COSTS) + panic("No PBQP solution found"); /* assign colors */ -- 2.20.1