From e91e9ecf2f6ef18ed9d9642915e5e1abb63e150a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 14 Oct 2012 03:28:14 +0000 Subject: [PATCH] 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 --- lib/CodeGen/TargetInfo.cpp | 5 +++-- 1 file 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(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)); } } } -- 2.40.0