[clang] 751db4b - [clang] Move Sema::WarnedStackExhausted from public to private. (#111799)

via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 02:48:19 PDT 2024


Author: Boaz Brickner
Date: 2024-10-14T11:48:15+02:00
New Revision: 751db4b73667cce9739cf2207917a325af783a0a

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

LOG: [clang] Move Sema::WarnedStackExhausted from public to private. (#111799)

Added: 
    

Modified: 
    clang/include/clang/Sema/Sema.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 83136ca7666a54..0faa5aed4eec3b 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -872,8 +872,6 @@ class Sema final : public SemaBase {
   /// For example, user-defined classes, built-in "id" type, etc.
   Scope *TUScope;
 
-  bool WarnedStackExhausted = false;
-
   void incrementMSManglingNumber() const {
     return CurScope->incrementMSManglingNumber();
   }
@@ -1185,6 +1183,8 @@ class Sema final : public SemaBase {
   std::optional<std::unique_ptr<DarwinSDKInfo>> CachedDarwinSDKInfo;
   bool WarnedDarwinSDKInfoMissing = false;
 
+  bool WarnedStackExhausted = false;
+
   Sema(const Sema &) = delete;
   void operator=(const Sema &) = delete;
 


        


More information about the cfe-commits mailing list