================
@@ -15811,6 +15813,20 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) {
<< FixItHint::CreateInsertion(P.first, "self->");
}
+void Sema::CheckCoroutineWrapper(FunctionDecl *FD) {
+ if (!FD || getCurFunction()->isCoroutine())
----------------
usx95 wrote:
`getCurFunction()` returns the function scope info which contains information
about the processed function body being a coroutine or not. FD and
getCurFunction() refers to the same function (one is decl and the other is FSI).
I will add a lambda inside a coroutine test to clarify.
https://github.com/llvm/llvm-project/pull/71945
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits