genmatch.c (replace_id): Copy expr_type.
authorRichard Biener <rguenther@suse.de>
Mon, 9 Feb 2015 13:43:17 +0000 (13:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 9 Feb 2015 13:43:17 +0000 (13:43 +0000)
2015-02-09  Richard Biener  <rguenther@suse.de>

* genmatch.c (replace_id): Copy expr_type.

From-SVN: r220541

gcc/ChangeLog
gcc/genmatch.c

index 2b548126b1e468ad61d9dc7e2515a239d1374c96..5d12a5d34d4d0b593ad2009e60ed7a4704e46aa6 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-09  Richard Biener  <rguenther@suse.de>
+
+       * genmatch.c (replace_id): Copy expr_type.
+
 2015-02-09  Richard Biener  <rguenther@suse.de>
 
        * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
index ea557a5bef4537b020f8e5a7bcc84b113a3c3a66..6723c29901450db69eda28aeb62e4cdce30292f4 100644 (file)
@@ -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;