diff options
author | Nick Burrett <nick.burrett@btinternet.com> | 2000-01-12 10:16:04 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-01-12 03:16:04 -0700 |
commit | 40d7a3fece71ace4f22a9158991846818aa6bce3 (patch) | |
tree | 73a20b7fa23564e688da47db07e2875a02732c56 /gcc/gcse.c | |
parent | d2f5d3b8d62025894b378bdf047ebd18006b77d8 (diff) | |
download | gcc-40d7a3fece71ace4f22a9158991846818aa6bce3.zip gcc-40d7a3fece71ace4f22a9158991846818aa6bce3.tar.gz gcc-40d7a3fece71ace4f22a9158991846818aa6bce3.tar.bz2 |
gcse.c (delete_null_pointer_checks_1): Cope when get_condition cannot determine the condition.
* gcse.c (delete_null_pointer_checks_1): Cope when
get_condition cannot determine the condition.
From-SVN: r31347
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5131,6 +5131,10 @@ delete_null_pointer_checks_1 (block_reg, nonnull_avin, nonnull_avout, npi) /* LAST_INSN is a conditional jump. Get its condition. */ condition = get_condition (last_insn, &earliest); + /* If we can't determine the condition then skip. */ + if (! condition) + continue; + /* Is the register known to have a nonzero value? */ if (!TEST_BIT (nonnull_avout[bb], block_reg[bb] - npi->min_reg)) continue; |