summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-15 04:47:45 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-15 04:47:45 +0000
commit311c832fdace67a6906be39afcb9f220acf56518 (patch)
tree67d6be980ded0b55d2310af6815754fec1ff601d /clang/lib/CodeGen/CGStmt.cpp
parentd079a446d71b9505e9e878b6f466072095dae32e (diff)
downloadbcm5719-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/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 41a96e82e24..3b28a61939e 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -1634,7 +1634,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
llvm::CallInst *Result = Builder.CreateCall(IA, Args);
llvm::Attributes::Builder B;
B.addAttribute(llvm::Attributes::NoUnwind);
- Result->addAttribute(~0, llvm::Attributes::get(B));
+ Result->addAttribute(~0, llvm::Attributes::get(getLLVMContext(), B));
// Slap the source location of the inline asm into a !srcloc metadata on the
// call. FIXME: Handle metadata for MS-style inline asms.
OpenPOWER on IntegriCloud