forked from OSchip/llvm-project
Revert "[clang] Fix warnings on the missing of explicitly copy constructor on the base class. NFC."
This reverts commit 1ed506dead
.
This commit is contained in:
parent
853553f81b
commit
e7a6915863
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue