summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-11-20 05:09:43 +0000
committerBill Wendling <isanbard@gmail.com>2012-11-20 05:09:43 +0000
commit0a154d0490aac84ba69709c44c3c7f5f3dae03cf (patch)
tree835e5852e1bcd16ca4a49b7d9e7d25809de13a0d /clang/lib/CodeGen/CodeGenModule.cpp
parentf86efb9b98faf36e1038a34327df2bdeea95f19a (diff)
downloadbcm5719-llvm-0a154d0490aac84ba69709c44c3c7f5f3dae03cf.tar.gz
bcm5719-llvm-0a154d0490aac84ba69709c44c3c7f5f3dae03cf.zip
Update method calls to the new interface re r168354.
llvm-svn: 168355
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 8975e2f4c0a..17972e29b65 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -533,7 +533,7 @@ void CodeGenModule::SetLLVMFunctionAttributes(const Decl *D,
unsigned CallingConv;
AttributeListType AttributeList;
ConstructAttributeList(Info, D, AttributeList, CallingConv);
- F->setAttributes(llvm::AttrListPtr::get(AttributeList));
+ F->setAttributes(llvm::AttrListPtr::get(getLLVMContext(), AttributeList));
F->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv));
}
@@ -1864,7 +1864,7 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old,
ArgList.clear();
if (!NewCall->getType()->isVoidTy())
NewCall->takeName(CI);
- NewCall->setAttributes(llvm::AttrListPtr::get(AttrVec));
+ NewCall->setAttributes(llvm::AttrListPtr::get(OldFn->getContext(), AttrVec));
NewCall->setCallingConv(CI->getCallingConv());
// Finally, remove the old call, replacing any uses with the new one.
OpenPOWER on IntegriCloud