diff options
author | Nick Clifton <nickc@cygnus.com> | 1998-10-13 11:39:26 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 1998-10-13 11:39:26 +0000 |
commit | 2ce5e1b422b29b6b85a271060d17fde8c8905974 (patch) | |
tree | 5f02543dbcfccbb702ddae77f40d70b47e92c407 /gcc/cse.c | |
parent | 38ada91eef4f9efa0887efaf699f39a38c3816d9 (diff) | |
download | gcc-2ce5e1b422b29b6b85a271060d17fde8c8905974.zip gcc-2ce5e1b422b29b6b85a271060d17fde8c8905974.tar.gz gcc-2ce5e1b422b29b6b85a271060d17fde8c8905974.tar.bz2 |
Check for NULL return from gen_lowpart_if_possible().
From-SVN: r23049
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5860,7 +5860,7 @@ equiv_constant (x) && qty_const[reg_qty[REGNO (x)]]) x = gen_lowpart_if_possible (GET_MODE (x), qty_const[reg_qty[REGNO (x)]]); - if (x != 0 && CONSTANT_P (x)) + if (x == 0 || CONSTANT_P (x)) return x; /* If X is a MEM, try to fold it outside the context of any insn to see if |