projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97c2073
)
Align vectors to the size in bytes, not bits.
author
Chris Lattner
<sabre@nondot.org>
Mon, 3 Apr 2006 19:28:50 +0000
(19:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 3 Apr 2006 19:28:50 +0000
(19:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27376
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetData.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetData.cpp
b/lib/Target/TargetData.cpp
index 63c5b6178a3f8803e52e8dddb376babc2bb4a029..e199f44194b59b9c22033cc4ebe8c89f7ee716f1 100644
(file)
--- 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: {