diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-11-30 14:01:34 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-11-30 14:01:34 +0100 |
commit | 2c7973212032bb1d4240a305b9ffb99469f67e89 (patch) | |
tree | e122a4ff668ec9bdc50d3a37e31a0ac2074f264f /gcc/ira.c | |
parent | 11bbe995316983de061fd8befa4e9748b43e579a (diff) | |
download | gcc-2c7973212032bb1d4240a305b9ffb99469f67e89.tar.gz |
ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx for REG_EQUIV argument.
* ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
for REG_EQUIV argument.
From-SVN: r243017
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c index d20ec99fae5..358110b6a31 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -2647,7 +2647,7 @@ ira_update_equiv_info_by_shuffle_insn (int to_regno, int from_regno, rtx_insn *i } if (find_reg_note (insn, REG_EQUIV, x) == NULL_RTX) { - note = set_unique_reg_note (insn, REG_EQUIV, x); + note = set_unique_reg_note (insn, REG_EQUIV, copy_rtx (x)); gcc_assert (note != NULL_RTX); if (internal_flag_ira_verbose > 3 && ira_dump_file != NULL) { |