From: Bill Wendling Date: Sun, 14 Oct 2012 03:28:14 +0000 (+0000) Subject: Use the Builder to create the stack alignment attribute. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccf94c9e02993494088a81f4b3a09a4cca586b9f;p=platform%2Fupstream%2Fllvm.git Use the Builder to create the stack alignment attribute. llvm-svn: 165888 --- diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index fe85283..d84d57c 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/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)); } } }