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 | 78c788b450e9f449a491673e00909a9fcef49a10 (patch) | |
tree | 4111bb64fcb0112fdbd4bbfb980f47853795f972 /llvm/lib | |
parent | e1e3adf802813176ca33b29bcbb0ef1af4021b31 (diff) | |
download | bcm5719-llvm-78c788b450e9f449a491673e00909a9fcef49a10.tar.gz bcm5719-llvm-78c788b450e9f449a491673e00909a9fcef49a10.zip |
Align vectors to the size in bytes, not bits.
llvm-svn: 27376
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 63c5b6178a3..e199f44194b 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/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: { |