diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-03 19:28:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-03 19:28:50 +0000 |
commit | 630ebaf1f22ddd9e2e1e84b456529e8961bf129c (patch) | |
tree | 143ca105e504c9447894c94f9668209da7663971 /lib/Target/TargetData.cpp | |
parent | 97c2073270e59efd966e9fe1c9b6697cc863d680 (diff) |
Align vectors to the size in bytes, not bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 63c5b6178a..e199f44194 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -217,7 +217,7 @@ static inline void getTypeInfo(const Type *Ty, const TargetData *TD, Size = AlignedSize*PTy->getNumElements(); // FIXME: The alignments of specific packed types are target dependent. // For now, just set it to be equal to Size. - Alignment = Size; + Alignment = (Size+7)/8; return; } case Type::StructTyID: { |