[clang] [Clang] Preserve coroutine parameter referenced state (PR #70973)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 1 23:03:31 PDT 2023
================
@@ -1965,9 +1965,15 @@ bool Sema::buildCoroutineParameterMoves(SourceLocation Loc) {
if (PD->getType()->isDependentType())
continue;
+ // Preserve the referenced state for unused parameter diagnostics.
+ bool DeclReferenced = PD->isReferenced();
----------------
ChuanqiXu9 wrote:
Cool.
https://github.com/llvm/llvm-project/pull/70973
More information about the cfe-commits
mailing list