================ @@ -1199,6 +1213,17 @@ static void checkExprLifetimeImpl(Sema &SemaRef, break; } + case LK_LifetimeCapture: { + if (!MTE) ---------------- Xazax-hun wrote:
Ah, makes sense. I guess there is only one case when we could potentially get away with this, when `addToSet` is the last operation in the function, i.e., it is a tail call. But we might not have a convenient way to tell that only based on the AST. https://github.com/llvm/llvm-project/pull/111499 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits