[llvm-commits] [llvm-gcc-4.2] r45207 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Dale Johannesen dalej at apple.com
Wed Dec 19 10:41:39 PST 2007


Author: johannes
Date: Wed Dec 19 12:41:39 2007
New Revision: 45207

URL: http://llvm.org/viewvc/llvm-project?rev=45207&view=rev
Log:
Improve previous patch per review feedback.


Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=45207&r1=45206&r2=45207&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Wed Dec 19 12:41:39 2007
@@ -303,9 +303,8 @@
   // This relies on gcc types with constant size mapping to LLVM types with the
   // same size.  It is possible for the component type not to have a size:
   // struct foo;  extern foo bar[];
-  return !VOID_TYPE_P(TREE_TYPE(type)) &&
-         (!TYPE_SIZE(TREE_TYPE(type)) || 
-            isInt64(TYPE_SIZE(TREE_TYPE(type)), true));
+  return !TYPE_SIZE(TREE_TYPE(type)) || 
+         isInt64(TYPE_SIZE(TREE_TYPE(type)), true);
 }
 
 /// isArrayCompatible - Return true if the specified gcc array or pointer type





More information about the llvm-commits mailing list