diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-15 07:31:59 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-15 07:31:59 +0000 |
commit | 75d37b493e2282f993a19a166bd573b03a7535af (patch) | |
tree | 855331cbf88da843e13a9490e580740ea09c7a9a /lib/CodeGen/TargetInfo.cpp | |
parent | 2b49d1f0ad790a8a5d514af1be211591a746cb73 (diff) |
Use enum values instead of magic numbers for indexing into the attribute list.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 497adcd753..dca335d69d 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -970,7 +970,8 @@ void X86_32TargetCodeGenInfo::SetTargetAttributes(const Decl *D, // Now add the 'alignstack' attribute with a value of 16. llvm::Attributes::Builder B; B.addStackAlignmentAttr(16); - Fn->addAttribute(~0U, llvm::Attributes::get(CGM.getLLVMContext(), B)); + Fn->addAttribute(llvm::AttrListPtr::FunctionIndex, + llvm::Attributes::get(CGM.getLLVMContext(), B)); } } } |