r248759 - Remove trivial dtor that was making uses of the copy ctor -Wdeprecated unclean

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 16:48:49 PDT 2015


Author: dblaikie
Date: Mon Sep 28 18:48:49 2015
New Revision: 248759

URL: http://llvm.org/viewvc/llvm-project?rev=248759&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Serialization/ASTReaderDecl.cpp

Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReaderDecl.cpp?rev=248759&r1=248758&r2=248759&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReaderDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReaderDecl.cpp Mon Sep 28 18:48:49 2015
@@ -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(
 }
 
 void ASTDeclReader::VisitObjCTypeParamDecl(ObjCTypeParamDecl *D) {
-  RedeclarableResult Redecl = VisitTypedefNameDecl(D);
+  VisitTypedefNameDecl(D);
 
   D->Variance = Record[Idx++];
   D->Index = Record[Idx++];




More information about the cfe-commits mailing list