diff options
Diffstat (limited to 'gcc-4.9/gcc/tree-predcom.c')
-rw-r--r-- | gcc-4.9/gcc/tree-predcom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/tree-predcom.c b/gcc-4.9/gcc/tree-predcom.c index 730bad46a..20b0e3b0a 100644 --- a/gcc-4.9/gcc/tree-predcom.c +++ b/gcc-4.9/gcc/tree-predcom.c @@ -1391,8 +1391,8 @@ ref_at_iteration (data_reference_p dr, int iter, gimple_seq *stmts) off = size_binop (PLUS_EXPR, off, size_binop (MULT_EXPR, DR_STEP (dr), ssize_int (iter))); tree addr = fold_build_pointer_plus (DR_BASE_ADDRESS (dr), off); - addr = force_gimple_operand_1 (addr, stmts, is_gimple_mem_ref_addr, - NULL_TREE); + addr = force_gimple_operand_1 (unshare_expr (addr), stmts, + is_gimple_mem_ref_addr, NULL_TREE); tree alias_ptr = fold_convert (reference_alias_ptr_type (DR_REF (dr)), coff); /* While data-ref analysis punts on bit offsets it still handles bitfield accesses at byte boundaries. Cope with that. Note that |