Commit 4ba94858 authored by yb9976's avatar yb9976
Browse files

Ensure that tarval is constant.

This fixes opt/fehler238.c.
parent 4051ec12
......@@ -6736,7 +6736,7 @@ restart:;
ir_tarval *o = b->o;
/* Replace node with constant value by Const. */
if (z == o) {
if (z == o && tarval_is_constant(z)) {
ir_mode *const m = get_irn_mode(n);
if (mode_is_int(m) || m == mode_b) {
ir_graph *const irg = get_irn_irg(n);
......
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