From 630ebaf1f22ddd9e2e1e84b456529e8961bf129c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Apr 2006 19:28:50 +0000 Subject: [PATCH] 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 --- lib/Target/TargetData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 63c5b6178a3..e199f44194b 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: { -- 2.34.1