Skip to content

Commit

Permalink
[clang] Modernize DelayedDiagnostics (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Apr 27, 2023
1 parent 1b2247d commit 7c30d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Sema/Sema.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c30d30

Please sign in to comment.