[clang] bd31c36 - [AST] Modernize FunctionTypeDepthState (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 20 09:43:09 PDT 2023


Author: Kazu Hirata
Date: 2023-08-20T09:42:56-07:00
New Revision: bd31c36fd0c8efa57dea9c078d191d01d24e929f

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

LOG: [AST] Modernize FunctionTypeDepthState (NFC)

Added: 
    

Modified: 
    clang/lib/AST/ItaniumMangle.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp
index 153f6dc2e9cf12..53963d2a91752a 100644
--- a/clang/lib/AST/ItaniumMangle.cpp
+++ b/clang/lib/AST/ItaniumMangle.cpp
@@ -238,12 +238,12 @@ class CXXNameMangler {
   unsigned SeqID = 0;
 
   class FunctionTypeDepthState {
-    unsigned Bits;
+    unsigned Bits = 0;
 
     enum { InResultTypeMask = 1 };
 
   public:
-    FunctionTypeDepthState() : Bits(0) {}
+    FunctionTypeDepthState() = default;
 
     /// The number of function types we're inside.
     unsigned getDepth() const {


        


More information about the cfe-commits mailing list