Skip to content

Commit

Permalink
[CodeGen] Modernize EHScopeStack::Cleanup::Flags (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Sep 2, 2023
1 parent f7dcabe commit 2cdfdfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/EHScopeStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ class EHScopeStack {
F_IsEHCleanupKind = 0x4,
F_HasExitSwitch = 0x8,
};
unsigned flags;
unsigned flags = 0;

public:
Flags() : flags(0) {}
Flags() = default;

/// isForEH - true if the current emission is for an EH cleanup.
bool isForEHCleanup() const { return flags & F_IsForEH; }
Expand Down

0 comments on commit 2cdfdfd

Please sign in to comment.