diff --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h index 3c8a51590d1b5..0c667e80bb6d8 100644 --- a/clang/lib/CodeGen/EHScopeStack.h +++ b/clang/lib/CodeGen/EHScopeStack.h @@ -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; }