diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 0b324bc54c32e3..a25dfb7434cf0c 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -946,10 +946,10 @@ class Sema final { class DelayedDiagnostics { /// The current pool of diagnostics into which delayed /// diagnostics should go. - sema::DelayedDiagnosticPool *CurPool; + sema::DelayedDiagnosticPool *CurPool = nullptr; public: - DelayedDiagnostics() : CurPool(nullptr) {} + DelayedDiagnostics() = default; /// Adds a delayed diagnostic. void add(const sema::DelayedDiagnostic &diag); // in DelayedDiagnostic.h