diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-14 03:28:14 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-14 03:28:14 +0000 |
commit | e91e9ecf2f6ef18ed9d9642915e5e1abb63e150a (patch) | |
tree | 8aeeab0bb1fc93bb50a6e9c8f2f69ed478223fdd /lib/CodeGen | |
parent | 27844533aad5c165523a5926424097699610d3f0 (diff) |
Use the Builder to create the stack alignment attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index fe85283930..d84d57c2bb 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -968,8 +968,9 @@ void X86_32TargetCodeGenInfo::SetTargetAttributes(const Decl *D, llvm::Function *Fn = cast<llvm::Function>(GV); // Now add the 'alignstack' attribute with a value of 16. - Fn->addAttribute(~0U, - llvm::Attributes::constructStackAlignmentFromInt(16)); + llvm::Attributes::Builder B; + B.addStackAlignmentAttr(16); + Fn->addAttribute(~0U, llvm::Attributes::get(B)); } } } |