aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-05-20 11:47:18 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-05-20 11:47:18 +0000
commitcf4ef6f7d4342aff9c7cefeb4bdcffc714806de9 (patch)
tree261cc67aa37ce6e0f87c3407fe32d3ff463f28f4 /gcc/cfgexpand.c
parent98209db3dc215a0288df75f3f1b9432d244fe2a9 (diff)
downloadgcc-cf4ef6f7d4342aff9c7cefeb4bdcffc714806de9.zip
gcc-cf4ef6f7d4342aff9c7cefeb4bdcffc714806de9.tar.gz
gcc-cf4ef6f7d4342aff9c7cefeb4bdcffc714806de9.tar.bz2
cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
* cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P. * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P. From-SVN: r223442
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 09e668a..f65e1fc 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -4039,7 +4039,7 @@ expand_debug_expr (tree exp)
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);