Commit 086925d8 by Mark Mitchell Committed by Mark Mitchell

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

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

From-SVN: r29485
parent 8e91754e
Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
* stmt.c (preserve_subexpressions_p): Don't crash when
current_function->stmt is unset.
Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com> Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
* stmt.c (expand_start_bindings): Allow callers to pass a flag * stmt.c (expand_start_bindings): Allow callers to pass a flag
......
...@@ -2603,7 +2603,8 @@ preserve_subexpressions_p () ...@@ -2603,7 +2603,8 @@ preserve_subexpressions_p ()
if (flag_expensive_optimizations) if (flag_expensive_optimizations)
return 1; return 1;
if (optimize == 0 || current_function == 0 || loop_stack == 0) if (optimize == 0 || current_function == 0
|| current_function->stmt == 0 || loop_stack == 0)
return 0; return 0;
insn = get_last_insn_anywhere (); insn = get_last_insn_anywhere ();
......
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