================ @@ -15845,7 +15845,7 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) { } void Sema::CheckCoroutineWrapper(FunctionDecl *FD) { - if (!FD) + if (!FD || FD->hasSkippedBody()) ---------------- usx95 wrote:
Moved the check to calling code. `CheckCompletedCoroutineBody` suffers from the same problem, i.e., use of `FSI->isCoroutine()` is invalid. So both coroutine related actions are now behind this check. https://github.com/llvm/llvm-project/pull/76729 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits