* cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.

From-SVN: r65249
This commit is contained in:
Richard Henderson 2003-04-04 13:49:42 -08:00 committed by Richard Henderson
parent 0705a2a26a
commit 7c2aa9d72c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-04-04 Richard Henderson <rth@redhat.com>
* cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
2003-04-04 Loren James Rittle <ljrittle@acm.org>
* fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.

View File

@ -3354,7 +3354,7 @@ fold_rtx (x, insn)
lets us fold switch statements on the VAX. */
{
rtx next;
if (tablejump_p (insn, &next, NULL))
if (insn && tablejump_p (insn, &next, NULL))
return gen_rtx_LABEL_REF (Pmode, next);
}
break;