Commit fd7628f0 authored by yb9976's avatar yb9976
Browse files

Boolopt: Make code robust against Const nodes.

parent d98b01a5
......@@ -550,7 +550,9 @@ static void normalize_cmp(ir_node **io_cmp, ir_relation *io_rel, ir_tarval **io_
ir_node *right = get_Cmp_right(cmp);
*io_rel = get_negated_relation(rel);
*io_cmp = new_rd_Cmp(dbgi, block, left, right, *io_rel);
*io_tv = get_Const_tarval(get_Cmp_right(*io_cmp));
if (is_Cmp(*io_cmp)) {
*io_tv = get_Const_tarval(get_Cmp_right(*io_cmp));
}
}
/**
......
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