diff options
author | Reid Kleckner <rnk@google.com> | 2017-04-18 23:50:03 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-04-18 23:50:03 +0000 |
commit | cdd26794a9516b4a4f90e46414da3754cbcf78af (patch) | |
tree | 8bd40425f05afc60e176a425ae21963ae1423564 /clang/lib/CodeGen/CGVTables.cpp | |
parent | 9f7cc58f81a43d6f6c413e38e51e0ab68e7b71fc (diff) | |
download | bcm5719-llvm-cdd26794a9516b4a4f90e46414da3754cbcf78af.tar.gz bcm5719-llvm-cdd26794a9516b4a4f90e46414da3754cbcf78af.zip |
Use less temporary AttributeLists NFC
llvm-svn: 300628
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index 7b0c8bf7d6e..1869c0e809d 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -379,12 +379,9 @@ void CodeGenFunction::EmitMustTailThunk(const CXXMethodDecl *MD, // Apply the standard set of call attributes. unsigned CallingConv; - CodeGen::AttributeListType AttributeList; - CGM.ConstructAttributeList(CalleePtr->getName(), - *CurFnInfo, MD, AttributeList, + llvm::AttributeList Attrs; + CGM.ConstructAttributeList(CalleePtr->getName(), *CurFnInfo, MD, Attrs, CallingConv, /*AttrOnCallSite=*/true); - llvm::AttributeList Attrs = - llvm::AttributeList::get(getLLVMContext(), AttributeList); Call->setAttributes(Attrs); Call->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv)); |