(fold_rtx, case MINUS): Copy result obtained from hash table.

From-SVN: r5347
This commit is contained in:
Richard Kenner 1993-09-17 18:13:33 -04:00
parent 31c85c78b1
commit f3becefd60
1 changed files with 2 additions and 1 deletions

View File

@ -5215,7 +5215,8 @@ fold_rtx (x, insn)
{
rtx y = lookup_as_function (XEXP (x, 0), PLUS);
if (y && GET_CODE (XEXP (y, 1)) == CONST_INT)
return fold_rtx (plus_constant (y, -INTVAL (const_arg1)),
return fold_rtx (plus_constant (copy_rtx (y),
-INTVAL (const_arg1)),
NULL_RTX);
}