summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-16 05:23:44 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-16 05:23:44 +0000
commit507c351a9a45babf2838e7866914b1661f721d08 (patch)
treedc676d19e62eaefec20b37b5f92742f60ff67eaf /clang/lib/CodeGen/CGStmt.cpp
parentc6a15cf51948ed0f1f738744c489987c78f6ab1a (diff)
downloadbcm5719-llvm-507c351a9a45babf2838e7866914b1661f721d08.tar.gz
bcm5719-llvm-507c351a9a45babf2838e7866914b1661f721d08.zip
Use the Attributes::get method which takes an AttrVal value directly to simplify the code a bit. No functionality change.
llvm-svn: 166010
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index dc441d9c5b5..7c65b3c4376 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -1632,10 +1632,9 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
llvm::InlineAsm::get(FTy, AsmString, Constraints, HasSideEffect,
/* IsAlignStack */ false, AsmDialect);
llvm::CallInst *Result = Builder.CreateCall(IA, Args);
- llvm::AttrBuilder B;
- B.addAttribute(llvm::Attributes::NoUnwind);
Result->addAttribute(llvm::AttrListPtr::FunctionIndex,
- llvm::Attributes::get(getLLVMContext(), B));
+ llvm::Attributes::get(getLLVMContext(),
+ llvm::Attributes::NoUnwind));
// 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