Commit 46826921 by Richard Earnshaw Committed by Jeff Law

stmt.c (any_pending_cleanups): Don't crash when current_function->stmt is unset.

        * stmt.c (any_pending_cleanups): Don't crash when
        current_function->stmt is unset.

From-SVN: r29541
parent acfaa91e
Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
* stmt.c (any_pending_cleanups): Don't crash when
current_function->stmt is unset.
Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* emit-rtl.c (init_emit_once): Initialize const_int_rtx before
......
......@@ -4334,7 +4334,8 @@ any_pending_cleanups (this_contour)
{
struct nesting *block;
if (block_stack == 0)
if (current_function == NULL || current_function->stmt == NULL
|| block_stack == 0)
return 0;
if (this_contour && block_stack->data.block.cleanups != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment