[llvm-commits] [llvm] r53857 - /llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Mon Jul 21 11:25:17 PDT 2008
Author: asl
Date: Mon Jul 21 13:25:17 2008
New Revision: 53857
URL: http://llvm.org/viewvc/llvm-project?rev=53857&view=rev
Log:
Don't use larger alignment.
Modified:
llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
Modified: llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp?rev=53857&r1=53856&r2=53857&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp Mon Jul 21 13:25:17 2008
@@ -118,7 +118,7 @@
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;
More information about the llvm-commits
mailing list