From 54a31ca9bd6e56e0416a2a57bfa70dc77d099fca Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 17 Oct 2019 11:11:40 +0000 Subject: [PATCH] tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix TARGET_MEM_REF creation. 2019-10-17 Richard Biener * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix TARGET_MEM_REF creation. From-SVN: r277098 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-pre.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 607b94df5f4..bdafc5839f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-17 Richard Biener + + * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix + TARGET_MEM_REF creation. + 2019-10-17 Richard Biener PR tree-optimization/92129 diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 0f8f424c30c..363dec6f4dd 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -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) -- 2.30.2