From f6357b9cba9c783e5df9cb789106a46b1413db20 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 19 Nov 2007 13:57:44 +0000 Subject: [PATCH] Handle Bad nodes in create_conv(). [r18486] --- ast2firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast2firm.c b/ast2firm.c index 7bfe53d..71c8e78 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -806,7 +806,7 @@ static ir_node *create_conv(dbg_info *dbgi, ir_node *value, ir_mode *dest_mode) { ir_mode *value_mode = get_irn_mode(value); - if(value_mode == dest_mode) + if (value_mode == dest_mode || is_Bad(value)) return value; if(dest_mode == mode_b) { -- 2.20.1