[clang] [coroutines] Introduce [[clang::coro_lifetimebound]] (PR #72851)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 20 18:07:56 PST 2023
================
@@ -7580,10 +7580,15 @@ static void visitLifetimeBoundArguments(IndirectLocalPath &Path, Expr *Call,
if (ObjectArg && implicitObjectParamIsLifetimeBound(Callee))
VisitLifetimeBoundArg(Callee, ObjectArg);
+ bool checkCoroCall = false;
+ if (const auto *RD = Callee->getReturnType()->getAsRecordDecl()) {
+ checkCoroCall |= RD->hasAttr<CoroLifetimeBoundAttr>() &&
----------------
ChuanqiXu9 wrote:
```suggestion
checkCoroCall = RD->hasAttr<CoroLifetimeBoundAttr>() &&
```
nit:
https://github.com/llvm/llvm-project/pull/72851
More information about the cfe-commits
mailing list