diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-18 20:06:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-18 20:06:09 +0000 |
commit | 7549c5589ac0d2087e55f2bdd4854adef23f29fd (patch) | |
tree | c737491243325016f36bdb3ad038a701fe44da4c /lib/Sema/SemaDeclAttr.cpp | |
parent | e00d5c00f35163308a18ec1d3d2b9dfa1ecaf234 (diff) |
__attribute__((aligned)) was being ignored!
This knocks out another 8 gcc/compat/i386 & x86_64 failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index a385d97f68..614e53a751 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1177,8 +1177,9 @@ static void HandleAlignedAttr(Decl *d, const AttributeList &Attr, Sema &S) { unsigned Align = 0; if (Attr.getNumArgs() == 0) { // FIXME: This should be the target specific maximum alignment. - // (For now we just use 128 bits which is the maximum on X86. + // (For now we just use 128 bits which is the maximum on X86). Align = 128; + d->addAttr(new AlignedAttr(Align)); return; } |