stmt.c (expand_end_case): Return right away if the case stack is empty.

* stmt.c (expand_end_case): Return right away if the case stack is
	empty.

From-SVN: r29400
This commit is contained in:
Andreas Schwab 1999-09-14 07:52:02 +00:00 committed by Andreas Schwab
parent 21f50117c6
commit 03c0377003
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
* stmt.c (expand_end_case): Return right away if the case stack is
empty.
Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
* Makefile.in (version.c): Remove rule incorrectly brought in from

View File

@ -5188,6 +5188,10 @@ expand_end_case (orig_index)
tree index_expr, index_type;
int unsignedp;
/* Don't crash due to previous errors. */
if (thiscase == NULL)
return;
table_label = gen_label_rtx ();
index_expr = thiscase->data.case_stmt.index_expr;
index_type = TREE_TYPE (index_expr);