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:
parent
21f50117c6
commit
03c0377003
2 changed files with 9 additions and 0 deletions
|
@ -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)
|
Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* Makefile.in (version.c): Remove rule incorrectly brought in from
|
* Makefile.in (version.c): Remove rule incorrectly brought in from
|
||||||
|
|
|
@ -5188,6 +5188,10 @@ expand_end_case (orig_index)
|
||||||
tree index_expr, index_type;
|
tree index_expr, index_type;
|
||||||
int unsignedp;
|
int unsignedp;
|
||||||
|
|
||||||
|
/* Don't crash due to previous errors. */
|
||||||
|
if (thiscase == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
table_label = gen_label_rtx ();
|
table_label = gen_label_rtx ();
|
||||||
index_expr = thiscase->data.case_stmt.index_expr;
|
index_expr = thiscase->data.case_stmt.index_expr;
|
||||||
index_type = TREE_TYPE (index_expr);
|
index_type = TREE_TYPE (index_expr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue