================
@@ -786,6 +797,8 @@ class ASTContext : public RefCountedBase<ASTContext> {
   /// Keeps track of the deallocated DeclListNodes for future reuse.
   DeclListNode *ListNodeFreeList = nullptr;
 
+  std::unique_ptr<SemaProxy> SemaProxyPtr;
----------------
Endilll wrote:

Why are you going for (basically) a global variable that holds `SemaProxy`, 
instead of passing it explicitly to `Eval*()` functions? Explicit passing is 
what discussions around #115168 settled at, and it would also better insulate 
us against issues like [this 
one](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124202) I recently filed 
against GCC.

https://github.com/llvm/llvm-project/pull/173537
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to