From ccf94c9e02993494088a81f4b3a09a4cca586b9f Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 14 Oct 2012 03:28:14 +0000 Subject: Use the Builder to create the stack alignment attribute. llvm-svn: 165888 --- clang/lib/CodeGen/TargetInfo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/lib/CodeGen') diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index fe852839309..d84d57c2bbf 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)); } } } -- cgit v1.2.3