[llvm-commits] [llvm-gcc-4.2] r48724 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Devang Patel
dpatel at apple.com
Sun Mar 23 23:35:41 PDT 2008
Author: dpatel
Date: Mon Mar 24 01:35:41 2008
New Revision: 48724
URL: http://llvm.org/viewvc/llvm-project?rev=48724&view=rev
Log:
This is not true for the example quoted in the comment.
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=48724&r1=48723&r2=48724&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Mon Mar 24 01:35:41 2008
@@ -1746,11 +1746,6 @@
// Handle bit-fields specially.
if (isBitfield(Field)) {
- // Bit-field type does not influence structure alignment.
- // For example, struct A { char a; short b; int c:25; char d; } does not
- // have 4 byte alignment. To enforce this rule, always use packed struct.
- if (!Info.isPacked())
- return false;
DecodeStructBitField(Field, Info);
return true;
}
More information about the llvm-commits
mailing list