diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-15 12:37:58 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-15 12:37:58 +0000 |
commit | d99effe31c29400ce16c6c8e5b8944dc75809620 (patch) | |
tree | 572fd5c2f06c3ef8e5c0525291f9e774c2d3d770 /gcc/except.c | |
parent | 71ac14cb7c27764a29492edc1ef0bb1af64c15b2 (diff) | |
download | gcc-d99effe31c29400ce16c6c8e5b8944dc75809620.tar.gz |
* except.c (resolve_fixup_regions): Avoid dereferencing null pointer
to region, possible after integration of function with unreachable
regions that were optimized away.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65631 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c index 7cdb187e164..a99983462cc 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -913,7 +913,7 @@ resolve_fixup_regions () for (j = 1; j <= n; ++j) { cleanup = cfun->eh->region_array[j]; - if (cleanup->type == ERT_CLEANUP + if (cleanup && cleanup->type == ERT_CLEANUP && cleanup->u.cleanup.exp == fixup->u.fixup.cleanup_exp) break; } |