X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firopt_t.h;h=f6c362597afe48300cb2cbe378a2c3e221fdda5c;hb=336e12655908a05add9a504c5f7741c8b71d8506;hp=450261be26992f4083359f3b032915bff59f94d1;hpb=3e4d82438142a1df61a5451a2de3eff5c28c8e1f;p=libfirm diff --git a/ir/ir/iropt_t.h b/ir/ir/iropt_t.h index 450261be2..f6c362597 100644 --- a/ir/ir/iropt_t.h +++ b/ir/ir/iropt_t.h @@ -86,7 +86,7 @@ ir_node *optimize_in_place_2(ir_node *n); */ static INLINE tarval * value_of(ir_node *n) { - if ((n != NULL) && (get_irn_op(n) == op_Const)) + if ((n != NULL) && is_Const(n)) return get_Const_tarval(n); /* might return tarval_bad */ else return tarval_bad;