summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ifcombine.c
diff options
context:
space:
mode:
authortomby <tomby@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-02 09:45:27 +0000
committertomby <tomby@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-02 09:45:27 +0000
commit40d0b157c55ed92f3e2d8613ea3f2bf193274552 (patch)
tree690f161df4fa6eb3bb0b0da87e874d149fcdc71d /gcc/tree-ssa-ifcombine.c
parent8bb29572bd4bbee1f7d52c61693a2164e694d62e (diff)
downloadgcc-40d0b157c55ed92f3e2d8613ea3f2bf193274552.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136273 138bc75d-0d04-0410-961f-82ee72b054a4
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))