diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-20 19:22:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-20 19:22:21 +0000 |
commit | ad017fa7a4df7389d245d02a49b3c79ed70bedb9 (patch) | |
tree | bcbd290037266bae92bfb10705c40e830ea71a07 /lib/CodeGen/CGExpr.cpp | |
parent | a367a0236211dd2c81a363c4b47b40e0ac6a8797 (diff) |
Revert r170500. It over-zealously converted *ALL* things named Attributes, which is wrong here.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | lib/CodeGen/CGExpr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index daab163d27..8440eded83 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -2020,10 +2020,10 @@ void CodeGenFunction::EmitCheck(llvm::Value *Checked, StringRef CheckName, llvm::FunctionType::get(CGM.VoidTy, ArgTypes, false); llvm::AttrBuilder B; if (!Recover) { - B.addAttribute(llvm::Attribute::NoReturn) - .addAttribute(llvm::Attribute::NoUnwind); + B.addAttribute(llvm::Attributes::NoReturn) + .addAttribute(llvm::Attributes::NoUnwind); } - B.addAttribute(llvm::Attribute::UWTable); + B.addAttribute(llvm::Attributes::UWTable); // Checks that have two variants use a suffix to differentiate them bool NeedsAbortSuffix = (RecoverKind != CRK_Unrecoverable) && @@ -2032,7 +2032,7 @@ void CodeGenFunction::EmitCheck(llvm::Value *Checked, StringRef CheckName, (NeedsAbortSuffix? "_abort" : "")).str(); llvm::Value *Fn = CGM.CreateRuntimeFunction(FnType, FunctionName, - llvm::Attribute::get(getLLVMContext(), B)); + llvm::Attributes::get(getLLVMContext(), B)); llvm::CallInst *HandlerCall = Builder.CreateCall(Fn, Args); if (Recover) { Builder.CreateBr(Cont); |