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 607b94df5f47754b84e698e76ac7048ba542ed47..bdafc5839f3f80358bef6d079e96e1509c0637ea 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0f8f424c30ce6a31d5ba81852b3bd79304b2775c..363dec6f4dd5f6b1943bc6af950e1d487255a10d 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)