From c950a0102bcb82d475711b2782e245eb778fe2af Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 28 Sep 2015 23:48:49 +0000 Subject: [PATCH] Remove trivial dtor that was making uses of the copy ctor -Wdeprecated unclean And also remove an unused variable that's now diagnosed by -Wunused-variable since the dtor is now trivial. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248759 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Serialization/ASTReaderDecl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index 2677592465..18b9477a48 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -129,7 +129,6 @@ namespace clang { public: RedeclarableResult(GlobalDeclID FirstID, Decl *MergeWith, bool IsKeyDecl) : FirstID(FirstID), MergeWith(MergeWith), IsKeyDecl(IsKeyDecl) {} - ~RedeclarableResult() {} /// \brief Retrieve the first ID. GlobalDeclID getFirstID() const { return FirstID; } @@ -882,7 +881,7 @@ void ASTDeclReader::VisitObjCMethodDecl(ObjCMethodDecl *MD) { } void ASTDeclReader::VisitObjCTypeParamDecl(ObjCTypeParamDecl *D) { - RedeclarableResult Redecl = VisitTypedefNameDecl(D); + VisitTypedefNameDecl(D); D->Variance = Record[Idx++]; D->Index = Record[Idx++]; -- 2.40.0