diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-15 04:47:45 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-15 04:47:45 +0000 |
commit | 311c832fdace67a6906be39afcb9f220acf56518 (patch) | |
tree | 67d6be980ded0b55d2310af6815754fec1ff601d /clang/lib/CodeGen/CGExpr.cpp | |
parent | d079a446d71b9505e9e878b6f466072095dae32e (diff) | |
download | bcm5719-llvm-311c832fdace67a6906be39afcb9f220acf56518.tar.gz bcm5719-llvm-311c832fdace67a6906be39afcb9f220acf56518.zip |
Attributes Rewrite
Convert the uses of the Attributes class over to the new format. The
Attributes::get method call now takes an LLVM context so that the attributes
object can be uniquified and stored.
llvm-svn: 165918
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index ec521a988bd..c62b1b10734 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -2087,7 +2087,8 @@ void CodeGenFunction::EmitCheck(llvm::Value *Checked, StringRef CheckName, .addAttribute(llvm::Attributes::UWTable); llvm::Value *Fn = CGM.CreateRuntimeFunction(FnType, ("__ubsan_handle_" + CheckName).str(), - llvm::Attributes::get(B)); + llvm::Attributes::get(getLLVMContext(), + B)); llvm::CallInst *HandlerCall = Builder.CreateCall(Fn, Args); HandlerCall->setDoesNotReturn(); HandlerCall->setDoesNotThrow(); |