[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Fri Dec 8 10:07:48 PST 2006
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.72 -> 1.73
---
Log message:
Packed Structures
---
Diffs of the changes: (+1 -1)
TargetData.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.72 llvm/lib/Target/TargetData.cpp:1.73
--- llvm/lib/Target/TargetData.cpp:1.72 Tue Oct 24 15:32:14 2006
+++ llvm/lib/Target/TargetData.cpp Fri Dec 8 12:06:15 2006
@@ -53,7 +53,7 @@
unsigned TyAlign;
uint64_t TySize;
getTypeInfo(Ty, &TD, TySize, A);
- TyAlign = A;
+ TyAlign = ST->isPacked() ? 1 : A;
// Add padding if necessary to make the data element aligned properly...
if (StructSize % TyAlign != 0)
More information about the llvm-commits
mailing list