[llvm-commits] [llvm-gcc-4.2] r42876 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c

Bill Wendling isanbard at gmail.com
Thu Oct 11 14:15:50 PDT 2007


Author: void
Date: Thu Oct 11 16:15:49 2007
New Revision: 42876

URL: http://llvm.org/viewvc/llvm-project?rev=42876&view=rev
Log:
Explicit cast needed

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=42876&r1=42875&r2=42876&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Thu Oct 11 16:15:49 2007
@@ -12135,8 +12135,11 @@
     }
   else
     /* APPLE LOCAL LLVM - begin NUL pointer */
-    super_expr = convert (string_type_node,
-                          build_int_cst (NULL_TREE, 0));
+    {
+      super_expr = convert (string_type_node,
+                            build_int_cst (NULL_TREE, 0));
+      super_expr = build_c_cast (cast_type, super_expr); /* cast! */
+    }
     /* APPLE LOCAL LLVM - end NUL pointer */
 
   root_expr = add_objc_string (my_root_id, class_names);





More information about the llvm-commits mailing list