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

Boaz Brickner via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 10 00:46:10 PDT 2024


https://github.com/bricknerb created https://github.com/llvm/llvm-project/pull/111799

None

>From cd82d15940ca3873d57de2e9f12e14c2544138dc Mon Sep 17 00:00:00 2001
From: bricknerb <brickner at google.com>
Date: Thu, 10 Oct 2024 07:44:19 +0000
Subject: [PATCH] Move Sema::WarnedStackExhausted from public to private.

---
 clang/include/clang/Sema/Sema.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index e0a5397d8db80d..0ac33adfa1a85d 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