[llvm-commits] [llvm-gcc-4.2] r54261 - /llvm-gcc-4.2/trunk/gcc/c-common.c
Mon P Wang
wangmp at apple.com
Thu Jul 31 21:04:51 PDT 2008
Author: wangmp
Date: Thu Jul 31 23:04:51 2008
New Revision: 54261
URL: http://llvm.org/viewvc/llvm-project?rev=54261&view=rev
Log:
Fixed r54260 as the second check is not redundant
Modified:
llvm-gcc-4.2/trunk/gcc/c-common.c
Modified: llvm-gcc-4.2/trunk/gcc/c-common.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/c-common.c?rev=54261&r1=54260&r2=54261&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/c-common.c (original)
+++ llvm-gcc-4.2/trunk/gcc/c-common.c Thu Jul 31 23:04:51 2008
@@ -8822,7 +8822,8 @@
type = TREE_TYPE (type);
if (!INTEGRAL_TYPE_P (type))
- goto incompatible;
+ if ( !POINTER_TYPE_P (type))
+ goto incompatible;
size = tree_low_cst (TYPE_SIZE_UNIT (type), 1);
if (size == 1 || size == 2 || size == 4 || size == 8 || size == 16)
More information about the llvm-commits
mailing list