Author: johannes
Date: Tue Nov  6 12:36:14 2007
New Revision: 43769

URL: http://llvm.org/viewvc/llvm-project?rev=43769&view=rev
Log:
Fix PR 1654.


Modified:
    llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
URL: 
http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/objc/objc-act.c?rev=43769&r1=43768&r2=43769&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Tue Nov  6 12:36:14 2007
@@ -13048,13 +13048,8 @@
              && TREE_TYPE (receiver) == objc_class_type))
        check_for_nil = false;
 
-      if (!targetm.calls.struct_value_rtx (0, 0)
-          && (TREE_CODE (ret_type) == RECORD_TYPE 
-                     || TREE_CODE (ret_type) == UNION_TYPE)
-          /* APPLE LOCAL begin radar 5080710 */
-          && (TREE_ADDRESSABLE (ret_type)
-              || targetm.calls.return_in_memory (ret_type, 0)))
-          /* APPLE LOCAL end radar 5080710 */
+      /* LLVM LOCAL pr 1654 */
+      if (aggregate_value_p (ret_type, 0))
        {
          if (super)
            message_func_decl = umsg_id_super2_stret_fixup_decl;
@@ -13188,13 +13183,8 @@
         argument, then change which messenger entry point this
         expr will call.  NB: Note that sender_cast remains
         unchanged (it already has a struct return type).  */
-      if (!targetm.calls.struct_value_rtx (0, 0)
-         && (TREE_CODE (ret_type) == RECORD_TYPE
-             || TREE_CODE (ret_type) == UNION_TYPE)
-          /* APPLE LOCAL begin radar 5080710 */
-          && (TREE_ADDRESSABLE (ret_type)
-              || targetm.calls.return_in_memory (ret_type, 0)))
-          /* APPLE LOCAL end radar 5080710 */
+      /* LLVM LOCAL pr 1654 */
+      if (aggregate_value_p (ret_type, 0))
        sender = (super_flag ? umsg_super_stret_decl :
                flag_nil_receivers ? umsg_stret_decl : umsg_nonnil_stret_decl);
       /* APPLE LOCAL begin radar 4280641 */


_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to