================ @@ -119,6 +119,11 @@ template<class T, DestructionThread destructionThread = DestructionThread::Any> ensureOnMainThread([this] { delete static_cast<const T*>(this); }); + } else if constexpr (destructionThread == DestructionThread::MainRunLoop) { + auto deleteThis = [this] { ---------------- haoNoQ wrote:
Can this variable be declared as `Function<>` instead? (It's probably unlikely. But the AST may be different if they do that.) https://github.com/llvm/llvm-project/pull/108656 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits