From: Matthias Braun Date: Tue, 4 Sep 2007 14:13:59 +0000 (+0000) Subject: we can't negate ConstP X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3e232b199304400b45a4064b3d8825c3624eb636;p=libfirm we can't negate ConstP [r15666] --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 7164938c4..62f43dd88 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -2047,7 +2047,7 @@ restart: return n; /* Sub(a, Const) -> Add(a, -Const) */ - if (is_Const(b)) { + if (is_Const(b) && get_irn_mode(b) != mode_P) { tarval *tv = get_Const_tarval(b); tv = tarval_neg(tv);