summaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-03 22:14:27 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-03 22:14:27 +0000
commit990be1d528036444e6dae4a5ac44df5d3dbb5f85 (patch)
tree92d89711cd4808e7bf5f6c579a5ab2b40b395373 /gcc/ifcvt.c
parent894511a5a2611f17b1254a4b5a146e5506556866 (diff)
downloadgcc-990be1d528036444e6dae4a5ac44df5d3dbb5f85.tar.gz
* ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126281 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index dd7764b921f..8a346bb5f4e 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -3311,8 +3311,8 @@ find_cond_trap (basic_block test_bb, edge then_edge, edge else_edge)
}
/* Attempt to generate the conditional trap. */
- seq = gen_cond_trap (code, XEXP (cond, 0),
- XEXP (cond, 1),
+ seq = gen_cond_trap (code, copy_rtx (XEXP (cond, 0)),
+ copy_rtx (XEXP (cond, 1)),
TRAP_CODE (PATTERN (trap)));
if (seq == NULL)
return FALSE;