[cfe-commits] r83328 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Mike Stump
mrs at apple.com
Mon Oct 5 14:58:45 PDT 2009
Author: mrs
Date: Mon Oct 5 16:58:44 2009
New Revision: 83328
URL: http://llvm.org/viewvc/llvm-project?rev=83328&view=rev
Log:
Respect alignments better.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=83328&r1=83327&r2=83328&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Oct 5 16:58:44 2009
@@ -345,6 +345,9 @@
if (D->hasAttr<NoInlineAttr>())
F->addFnAttr(llvm::Attribute::NoInline);
+
+ if (const AlignedAttr *AA = D->getAttr<AlignedAttr>())
+ F->setAlignment(AA->getAlignment()/8);
}
void CodeGenModule::SetCommonAttributes(const Decl *D,
More information about the cfe-commits
mailing list