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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits