Align vectors to the size in bytes, not bits.
llvm-svn: 27376
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp
index 63c5b61..e199f44 100644
--- a/llvm/lib/Target/TargetData.cpp
+++ b/llvm/lib/Target/TargetData.cpp
@@ -217,7 +217,7 @@
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: {