* cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
* c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
From-SVN: r223442
+2015-05-20 Marek Polacek <polacek@redhat.com>
+
+ * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
+
2015-05-20 Marek Polacek <polacek@redhat.com>
* expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
+2015-05-20 Marek Polacek <polacek@redhat.com>
+
+ * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
+
2015-05-20 Marek Polacek <polacek@redhat.com>
* c-ada-spec.c (dump_sloc): Use DECL_P.
{
tree op1 = TREE_OPERAND (exp, 1);
tree temp = TARGET_EXPR_SLOT (op0);
- if (TREE_CODE_CLASS (TREE_CODE (op1)) == tcc_binary
+ if (BINARY_CLASS_P (op1)
&& TREE_OPERAND (op1, 1) == temp)
{
op1 = copy_node (op1);
op0 = simplify_gen_subreg (mode, op0, inner_mode,
subreg_lowpart_offset (mode,
inner_mode));
- else if (TREE_CODE_CLASS (TREE_CODE (exp)) == tcc_unary
+ else if (UNARY_CLASS_P (exp)
? TYPE_UNSIGNED (TREE_TYPE (TREE_OPERAND (exp, 0)))
: unsignedp)
op0 = simplify_gen_unary (ZERO_EXTEND, mode, op0, inner_mode);