commit | c5e153c50e510dabdf4d7b1c83cba48fb4e40bdf | [log] [tgz] |
---|---|---|
author | Mike Stump <mrs@apple.com> | Mon Oct 05 21:58:44 2009 +0000 |
committer | Mike Stump <mrs@apple.com> | Mon Oct 05 21:58:44 2009 +0000 |
tree | 9bc4b810a3a244694048a5211b3d30bdc6d27f73 | |
parent | c2ac4f020b2a424a51300a93c7d655655f6e50ed [diff] [blame] |
Respect alignments better. llvm-svn: 83328
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index fdc9740..f7fe69e 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -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,