Revert "[clang] Fix warnings on the missing of explicitly copy constructor on the...
authorMichael Liao <michael.hliao@gmail.com>
Tue, 20 Oct 2020 14:19:44 +0000 (10:19 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 20 Oct 2020 14:25:20 +0000 (10:25 -0400)
This reverts commit 1ed506deaddb41870d22f5b48d52ba710e8d6c00.

clang/include/clang/Basic/Diagnostic.h
clang/include/clang/Basic/PartialDiagnostic.h

index 3895e1f..f17b98f 100644 (file)
@@ -1284,7 +1284,7 @@ protected:
 public:
   /// Copy constructor.  When copied, this "takes" the diagnostic info from the
   /// input and neuters it.
-  DiagnosticBuilder(const DiagnosticBuilder &D) : StreamingDiagnostic(D) {
+  DiagnosticBuilder(const DiagnosticBuilder &D) {
     DiagObj = D.DiagObj;
     DiagStorage = D.DiagStorage;
     IsActive = D.IsActive;
index 9ddf64d..9e01790 100644 (file)
@@ -49,8 +49,7 @@ public:
   PartialDiagnostic(unsigned DiagID, DiagStorageAllocator &Allocator_)
       : StreamingDiagnostic(Allocator_), DiagID(DiagID) {}
 
-  PartialDiagnostic(const PartialDiagnostic &Other)
-      : StreamingDiagnostic(Other), DiagID(Other.DiagID) {
+  PartialDiagnostic(const PartialDiagnostic &Other) : DiagID(Other.DiagID) {
     Allocator = Other.Allocator;
     if (Other.DiagStorage) {
       DiagStorage = getStorage();