emit-rtl.c (gen_highpart): Add check for NULL_RTX.

2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        * emit-rtl.c (gen_highpart): Add check for NULL_RTX.

From-SVN: r48586
This commit is contained in:
Craig Rodrigues 2002-01-06 20:54:52 +00:00
parent a858ca75e2
commit 13b8c631f3
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
* emit-rtl.c (gen_highpart): Add check for NULL_RTX.
2002-01-06 Jakub Jelinek <jakub@redhat.com>
* objc/objc-act.c (handle_impent): Use assemble_variable to emit

View File

@ -1200,7 +1200,7 @@ gen_highpart (mode, x)
/* simplify_gen_subreg is not guaranteed to return a valid operand for
the target if we have a MEM. gen_highpart must return a valid operand,
emitting code if necessary to do so. */
if (GET_CODE (result) == MEM)
if (result != NULL_RTX && GET_CODE (result) == MEM)
result = validize_mem (result);
if (!result)