[clang] [clang-repl] Refactor locking of runtime PTU stack (NFC) (PR #84176)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 11:41:34 PST 2024


Stefan =?utf-8?q?Gränitz?= <stefan.graenitz at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/84176 at github.com>


================
@@ -137,9 +136,10 @@ class Interpreter {
 
   Expr *SynthesizeExpr(Expr *E);
 
-private:
   size_t getEffectivePTUSize() const;
+  void finalizeInitPTUStack();
----------------
vgvassilev wrote:

> Do you mean sth like markMaxRestorePoint as in "the last point we can revert to"? 

Yes, this is the point the user code starts and there is no point to undo more because we will start reverting builtins. Maybe we can include user code in the name... Like `markUserCodeStart` or something.

https://github.com/llvm/llvm-project/pull/84176


More information about the cfe-commits mailing list