Don't use larger alignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2008-07-21 18:25:17 +00:00
parent d038e04188
commit d493b043c4

View File

@ -118,7 +118,7 @@ ELFTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const {
if (Size <= 16) {
// We also need alignment here
const TargetData *TD = ETM->getTargetData();
unsigned Align = TD->getPreferredAlignment(GV);
unsigned Align = TD->getPrefTypeAlignment(Type);
if (Align < Size)
Align = Size;