From 41cd9133698cf7a75d8835dd04c2fc5d1435925e Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 8 Jan 2008 14:56:25 +0000 Subject: [PATCH] fix warning [r17214] --- ir/ir/irnode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 4064cbb8a..987fea16d 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -41,6 +41,7 @@ #include "irprog_t.h" #include "iredgekinds.h" #include "iredges_t.h" +#include "ircons.h" #include "irhooks.h" #include "irtools.h" @@ -883,7 +884,7 @@ ir_node *get_irn_MacroBlock(const ir_node *n) { n = get_nodes_block(n); /* if the Block is Bad, do NOT try to get it's MB, it will fail. */ if (is_Bad(n)) - return n; + return new_Bad(); } return get_Block_MacroBlock(n); } -- 2.20.1