Commit 809e5f82 by Steven Bosscher

fix accidentally checked-in assert.

From-SVN: r186580
parent 0cd2402d
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* stmt.c (add_case_node, expand_case): Move logic to remove/reduce * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
case range and type folding from here... case range and type folding from here...
* gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
type, as documented in tree.def type, as documented in tree.def.
2012-04-18 Jan Hubicka <jh@suse.cz> 2012-04-18 Jan Hubicka <jh@suse.cz>
......
...@@ -1578,7 +1578,6 @@ gimplify_switch_expr (tree *expr_p, gimple_seq *pre_p) ...@@ -1578,7 +1578,6 @@ gimplify_switch_expr (tree *expr_p, gimple_seq *pre_p)
tree index_type = TREE_TYPE (switch_expr); tree index_type = TREE_TYPE (switch_expr);
if (index_type == NULL_TREE) if (index_type == NULL_TREE)
index_type = TREE_TYPE (SWITCH_COND (switch_expr)); index_type = TREE_TYPE (SWITCH_COND (switch_expr));
gcc_assert (INTEGRAL_TYPE_P (index_type));
ret = gimplify_expr (&SWITCH_COND (switch_expr), pre_p, NULL, is_gimple_val, ret = gimplify_expr (&SWITCH_COND (switch_expr), pre_p, NULL, is_gimple_val,
fb_rvalue); fb_rvalue);
......
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