summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ifcombine.c
diff options
context:
space:
mode:
authorTomas Bily <tbily@suse.cz>2008-06-02 11:45:27 +0200
committerTomas Bily <tomby@gcc.gnu.org>2008-06-02 11:45:27 +0200
commit5f9e56b3f27c9b2e9437b1b819b61b2c04669eaa (patch)
tree690f161df4fa6eb3bb0b0da87e874d149fcdc71d /gcc/tree-ssa-ifcombine.c
parente47551edc649320ac15a155ca089b743f1543fab (diff)
downloadgcc-5f9e56b3f27c9b2e9437b1b819b61b2c04669eaa.tar.gz
tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
* tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P. * cp/typeck.c (is_bitfield_expr_with_lowered_type): Use CASE_CONVERT. (cp_build_unary_op): Likewise. (cp_build_indirect_ref): Use CONVERT_EXPR_P. (maybe_warn_about_returning_address_of_local): Likewise. From-SVN: r136273
Diffstat (limited to 'gcc/tree-ssa-ifcombine.c')
-rw-r--r--gcc/tree-ssa-ifcombine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-ifcombine.c b/gcc/tree-ssa-ifcombine.c
index 4dbe7503c9e..93e7810cb3b 100644
--- a/gcc/tree-ssa-ifcombine.c
+++ b/gcc/tree-ssa-ifcombine.c
@@ -148,8 +148,7 @@ get_name_for_bit_test (tree candidate)
{
tree def_stmt = SSA_NAME_DEF_STMT (candidate);
if (TREE_CODE (def_stmt) == GIMPLE_MODIFY_STMT
- && (TREE_CODE (GIMPLE_STMT_OPERAND (def_stmt, 1)) == NOP_EXPR
- || TREE_CODE (GIMPLE_STMT_OPERAND (def_stmt, 1)) == CONVERT_EXPR))
+ && CONVERT_EXPR_P (GIMPLE_STMT_OPERAND (def_stmt, 1)))
{
tree rhs = GIMPLE_STMT_OPERAND (def_stmt, 1);
if (TYPE_PRECISION (TREE_TYPE (rhs))