summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-03-02 01:20:22 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-03-02 01:20:22 +0000
commit2ee0b630dcde096ad899c24e5144f4b405929495 (patch)
tree85eaa243e0fbf3727a0ec7be5ccecad16519942d /clang/lib
parent1b97a9c82a2b3a45fcdeb566c6ae2fc5d85fd9bb (diff)
downloadbcm5719-llvm-2ee0b630dcde096ad899c24e5144f4b405929495.tar.gz
bcm5719-llvm-2ee0b630dcde096ad899c24e5144f4b405929495.zip
LLVM API changes.
llvm-svn: 176398
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index a293f1d2e70..842eaf1c193 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -1647,8 +1647,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
/* IsAlignStack */ false, AsmDialect);
llvm::CallInst *Result = Builder.CreateCall(IA, Args);
Result->addAttribute(llvm::AttributeSet::FunctionIndex,
- llvm::Attribute::get(getLLVMContext(),
- llvm::Attribute::NoUnwind));
+ llvm::Attribute::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