tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix TARGET_MEM_REF creation.
authorRichard Biener <rguenther@suse.de>
Thu, 17 Oct 2019 11:11:40 +0000 (11:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 Oct 2019 11:11:40 +0000 (11:11 +0000)
2019-10-17  Richard Biener  <rguenther@suse.de>

* tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
TARGET_MEM_REF creation.

From-SVN: r277098

gcc/ChangeLog
gcc/tree-ssa-pre.c

index 607b94d..bdafc58 100644 (file)
@@ -1,5 +1,10 @@
 2019-10-17  Richard Biener  <rguenther@suse.de>
 
+       * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
+       TARGET_MEM_REF creation.
+
+2019-10-17  Richard Biener  <rguenther@suse.de>
+
        PR tree-optimization/92129
        * tree-vect-loop.c (vectorizable_reduction): Also fail
        on GIMPLE_SINGLE_RHS.
index 0f8f424..363dec6 100644 (file)
@@ -2492,7 +2492,7 @@ create_component_ref_by_pieces_1 (basic_block block, vn_reference_t ref,
     case TARGET_MEM_REF:
       {
        tree genop0 = NULL_TREE, genop1 = NULL_TREE;
-       vn_reference_op_t nextop = &ref->operands[++*operand];
+       vn_reference_op_t nextop = &ref->operands[(*operand)++];
        tree baseop = create_component_ref_by_pieces_1 (block, ref, operand,
                                                        stmts);
        if (!baseop)