except.c (resolve_fixup_regions): Avoid dereferencing null pointer to region...

* except.c (resolve_fixup_regions): Avoid dereferencing null pointer
	to region, possible after integration of function with unreachable
	regions that were optimized away.

From-SVN: r65631
This commit is contained in:
Olivier Hainque 2003-04-15 14:37:58 +02:00 committed by Richard Kenner
parent ff3867ae77
commit 29921faf49
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-04-15 Olivier Hainque <hainque@act-europe.fr>
* except.c (resolve_fixup_regions): Avoid dereferencing null pointer
to region, possible after integration of function with unreachable
regions that were optimized away.
2003-04-15 Jakub Jelinek <jakub@redhat.com>
* config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,

View File

@ -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;
}