objc-act.c (objc_generate_write_barrier, [...]): Use CONVERT_EXPR_P.
authorTomas Bily <tbily@suse.cz>
Mon, 12 May 2008 13:08:27 +0000 (15:08 +0200)
committerTomas Bily <tomby@gcc.gnu.org>
Mon, 12 May 2008 13:08:27 +0000 (15:08 +0200)
        * objc-act.c (objc_generate_write_barrier,
        objc_finish_message_expr): Use CONVERT_EXPR_P.

From-SVN: r135212

gcc/objc/ChangeLog
gcc/objc/objc-act.c

index 02a1356b8cdde54d19df52f9f3ab3869e1cb94d0..62fb91d6329c2053960c7b3ea12e7759fe4dc9da 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-12  Tomas Bily  <tbily@suse.cz>
+
+        * objc-act.c (objc_generate_write_barrier, objc_finish_message_expr):
+        Use CONVERT_EXPR_P.
+
 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
 
        * objc-act.c (objc_build_string_object): Don't set TREE_INVARIANT.
index 46565e94b4fa289af59a4e6823c366303843b39d..b19821cf4ee78c392a21dc421a78574a656447ca 100644 (file)
@@ -3164,8 +3164,7 @@ objc_generate_write_barrier (tree lhs, enum tree_code modifycode, tree rhs)
       outer = TREE_OPERAND (lhs, 0);
 
       while (!strong_cast_p
-            && (TREE_CODE (outer) == CONVERT_EXPR
-                || TREE_CODE (outer) == NOP_EXPR
+            && (CONVERT_EXPR_P (outer)
                 || TREE_CODE (outer) == NON_LVALUE_EXPR))
        {
          tree lhstype = TREE_TYPE (outer);
@@ -6267,8 +6266,7 @@ objc_finish_message_expr (tree receiver, tree sel_name, tree method_params)
   rtype = receiver;
   while (TREE_CODE (rtype) == COMPOUND_EXPR
              || TREE_CODE (rtype) == MODIFY_EXPR
-             || TREE_CODE (rtype) == NOP_EXPR
-             || TREE_CODE (rtype) == CONVERT_EXPR
+             || CONVERT_EXPR_P (rtype)
              || TREE_CODE (rtype) == COMPONENT_REF)
     rtype = TREE_OPERAND (rtype, 0);
   self = (rtype == self_decl);