use is_Const()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 22 May 2008 02:42:10 +0000 (02:42 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 22 May 2008 02:42:10 +0000 (02:42 +0000)
[r19719]

ir/ir/iropt_t.h

index 450261b..f6c3625 100644 (file)
@@ -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;