Commit b059139c by Richard Kenner

Revert to 1.140.

From-SVN: r11856
parent 48cda10e
......@@ -4871,10 +4871,6 @@ expand_end_case (orig_index)
/* An ERROR_MARK occurs for various reasons including invalid data type. */
if (index_type != error_mark_node)
{
if (thiscase->data.case_stmt.case_list)
thiscase->data.case_stmt.case_list
= case_tree2list (thiscase->data.case_stmt.case_list, 0);
/* If switch expression was an enumerated type, check that all
enumeration literals are covered by the cases.
No sense trying this if there's a default case, however. */
......@@ -4912,6 +4908,10 @@ expand_end_case (orig_index)
before_case = get_last_insn ();
if (thiscase->data.case_stmt.case_list)
thiscase->data.case_stmt.case_list
= case_tree2list(thiscase->data.case_stmt.case_list, 0);
/* Simplify the case-list before we count it. */
group_case_nodes (thiscase->data.case_stmt.case_list);
......
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