Commit 3c5129c4 authored by yb9976's avatar yb9976
Browse files

Removed wrong assertion.

This fixes opt/reassoc039.c.
parent 4ddbdba7
......@@ -684,11 +684,14 @@ static ir_node *get_topnode_from_middlenode(ir_node *node)
return get_Not_op(node);
if (is_Eor(node)) {
ir_node *l = get_Eor_left(node);
ir_node *r = get_Eor_right(node);
if (is_Const(r)) {
return get_Eor_left(node);
return l;
if (is_Const(l)) {
return r;
Supports Markdown
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