From: Richard Biener Date: Mon, 9 Feb 2015 13:43:17 +0000 (+0000) Subject: genmatch.c (replace_id): Copy expr_type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=434fa9039552236c2c290d0a74b2955964f00da1;p=gcc.git genmatch.c (replace_id): Copy expr_type. 2015-02-09 Richard Biener * genmatch.c (replace_id): Copy expr_type. From-SVN: r220541 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b548126b1e..5d12a5d34d4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-02-09 Richard Biener + + * genmatch.c (replace_id): Copy expr_type. + 2015-02-09 Richard Biener * tree-streamer.h (streamer_pack_tree_bitfields): Remove. diff --git a/gcc/genmatch.c b/gcc/genmatch.c index ea557a5bef4..6723c299014 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -982,6 +982,7 @@ replace_id (operand *o, user_id *id, id_base *with) { expr *ne = new expr (e->operation == id ? with : e->operation, e->is_commutative); + ne->expr_type = e->expr_type; for (unsigned i = 0; i < e->ops.length (); ++i) ne->append_op (replace_id (e->ops[i], id, with)); return ne;