[clang] [clang-tools-extra] [coroutines] Do not check coroutine wrappers for skipped function bodies (PR #76729)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 3 03:34:21 PST 2024
================
@@ -15845,7 +15845,7 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) {
}
void Sema::CheckCoroutineWrapper(FunctionDecl *FD) {
- if (!FD)
+ if (!FD || FD->hasSkippedBody())
----------------
ilya-biryukov wrote:
Nice! Thanks, this definitely looks much better now!
https://github.com/llvm/llvm-project/pull/76729
More information about the cfe-commits
mailing list