forked from OSchip/llvm-project
Align vectors to the size in bytes, not bits.
llvm-svn: 27376
This commit is contained in:
parent
e1e3adf802
commit
78c788b450
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue