[llvm-commits] [llvm-gcc-4.2] r46459 - /llvm-gcc-4.2/trunk/gcc/llvm-abi.h

Evan Cheng evan.cheng at apple.com
Mon Jan 28 12:55:32 PST 2008


Author: evancheng
Date: Mon Jan 28 14:55:32 2008
New Revision: 46459

URL: http://llvm.org/viewvc/llvm-project?rev=46459&view=rev
Log:
QUAL_UNION_TYPE is just like UNION_TYPE.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-abi.h

Modified: llvm-gcc-4.2/trunk/gcc/llvm-abi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-abi.h?rev=46459&r1=46458&r2=46459&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-abi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-abi.h Mon Jan 28 14:55:32 2008
@@ -123,7 +123,9 @@
 /// isZeroSizedStructOrUnion - Returns true if this is a struct or union 
 /// which is zero bits wide.
 static bool isZeroSizedStructOrUnion(tree type) {
-  if (TREE_CODE(type) != RECORD_TYPE && TREE_CODE(type) != UNION_TYPE)
+  if (TREE_CODE(type) != RECORD_TYPE &&
+      TREE_CODE(type) != UNION_TYPE &&
+      TREE_CODE(type) != QUAL_UNION_TYPE)
     return false;
   return int_size_in_bytes(type) == 0;
 }





More information about the llvm-commits mailing list