(find_reloads_address): Properly check for constant address.

From-SVN: r2220
This commit is contained in:
Richard Kenner 1992-09-23 19:26:34 -04:00
parent f12564b4c0
commit 191b18e9de
1 changed files with 1 additions and 1 deletions

View File

@ -3775,7 +3775,7 @@ find_reloads_address (mode, memrefloc, ad, loc, operand, ind_levels)
/* If constants aren't valid addresses, reload the constant address
into a register. */
if (CONSTANT_ADDRESS_P (ad) && ! strict_memory_address_p (mode, ad))
if (CONSTANT_P (ad) && ! strict_memory_address_p (mode, ad))
{
/* If AD is in address in the constant pool, the MEM rtx may be shared.
Unshare it so we can safely alter it. */