From: Götz Lindenmaier Date: Wed, 20 Jun 2001 16:20:00 +0000 (+0000) Subject: using an undefined variable now ends up using a const with X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=214e730d63ffdccd473107a981059186e72c6042;p=libfirm using an undefined variable now ends up using a const with tarval_bad. [r184] --- diff --git a/ir/ir/ircons.c b/ir/ir/ircons.c index cfef815df..fb9901d17 100644 --- a/ir/ir/ircons.c +++ b/ir/ir/ircons.c @@ -1074,7 +1074,8 @@ phi_merge (ir_node *block, int pos, ir_mode *mode, ir_node **nin, int ins) (bad, jmp). As the start has a self referencing control flow edge, we get a self referencing Id, which is hard to optimize away. We avoid this by defining the value as a Bad node. - Returning a const with tarval_bad is a preliminary solution. */ + Returning a const with tarval_bad is a preliminary solution. In some + situations we might want a Warning or an Error. */ if (block == get_irg_start_block(current_ir_graph)) { block->attr.block.graph_arr[pos] = new_Const(mode, tarval_bad);