From: Michael Beck Date: Mon, 29 Nov 2004 10:48:50 +0000 (+0000) Subject: needed is_Bad check X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=de7273208025747b993d8f74463ac7ee2ba993f8;p=libfirm needed is_Bad check [r4490] --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 60ad50ea6..ce100503c 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -97,7 +97,7 @@ static tarval *computed_value_Sub(ir_node *n) tarval *tb; /* a - a */ - if (a == b) + if (a == b && !is_Bad(a)) return get_tarval_null(get_irn_mode(n)); ta = value_of(a);