diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2004-12-12 15:52:33 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2004-12-12 15:52:33 +0000 |
commit | d16464bb8bd93317095cf3f73afdee3a44dde021 (patch) | |
tree | a3fa7ab4e950e0e878bee9af9bfb6b11a2c05bee /gcc/tree-ssa-loop-ch.c | |
parent | e192ab01d0551cf98e72be093f73bff19f94e98a (diff) | |
download | gcc-d16464bb8bd93317095cf3f73afdee3a44dde021.zip gcc-d16464bb8bd93317095cf3f73afdee3a44dde021.tar.gz gcc-d16464bb8bd93317095cf3f73afdee3a44dde021.tar.bz2 |
tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
2004-12-13 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
* tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
inner loop.
From-SVN: r92048
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
-rw-r--r-- | gcc/tree-ssa-loop-ch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c index 71d1bf2..e307528 100644 --- a/gcc/tree-ssa-loop-ch.c +++ b/gcc/tree-ssa-loop-ch.c @@ -152,6 +152,8 @@ copy_loop_headers (void) int limit = 20; loop = loops->parray[i]; + if (!loop) + continue; header = loop->header; /* If the loop is already a do-while style one (either because it was |