From 6d73a010bb951a4cc7cdd05a006216dd143ed5ba Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 1 Dec 2010 12:02:47 +0000 Subject: [PATCH] cond may be NULL [r28169] --- ast2firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast2firm.c b/ast2firm.c index 4e77196..8550148 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -5191,7 +5191,7 @@ static void switch_statement_to_firm(switch_statement_t *statement) } statement->default_proj_nr = default_proj_nr; /* safety check: cond might already be folded to a Bad */ - if (is_Cond(cond)) { + if (cond != NULL && is_Cond(cond)) { set_Cond_default_proj(cond, default_proj_nr); } -- 2.20.1