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:
parent
ff3867ae77
commit
29921faf49
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user