aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorNick Burrett <nick.burrett@btinternet.com>2000-01-12 10:16:04 +0000
committerJeff Law <law@gcc.gnu.org>2000-01-12 03:16:04 -0700
commit40d7a3fece71ace4f22a9158991846818aa6bce3 (patch)
tree73a20b7fa23564e688da47db07e2875a02732c56 /gcc/gcse.c
parentd2f5d3b8d62025894b378bdf047ebd18006b77d8 (diff)
downloadgcc-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 254cd06..4de6083 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -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;