[clang] 2cdfdfd - [CodeGen] Modernize EHScopeStack::Cleanup::Flags (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 2 09:32:54 PDT 2023


Author: Kazu Hirata
Date: 2023-09-02T09:32:36-07:00
New Revision: 2cdfdfd7b9bc9b4c6c329b1e33b377e24631e9a5

URL: https://github.com/llvm/llvm-project/commit/2cdfdfd7b9bc9b4c6c329b1e33b377e24631e9a5
DIFF: https://github.com/llvm/llvm-project/commit/2cdfdfd7b9bc9b4c6c329b1e33b377e24631e9a5.diff

LOG: [CodeGen] Modernize EHScopeStack::Cleanup::Flags (NFC)

Added: 
    

Modified: 
    clang/lib/CodeGen/EHScopeStack.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/EHScopeStack.h b/clang/lib/CodeGen/EHScopeStack.h
index 3c8a51590d1b531..0c667e80bb6d8cf 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; }


        


More information about the cfe-commits mailing list