[NFC] Edit the comment for the return type of await_suspend

This commit is contained in:
Chuanqi Xu 2020-07-29 10:20:55 +08:00
parent dd4106d22e
commit d3527052fc
1 changed files with 2 additions and 1 deletions

View File

@ -449,7 +449,8 @@ static ReadySuspendResumeResult buildCoawaitCalls(Sema &S, VarDecl *CoroPromise,
if (!AwaitSuspend->getType()->isDependentType()) {
// [expr.await]p3 [...]
// - await-suspend is the expression e.await_suspend(h), which shall be
// a prvalue of type void or bool.
// a prvalue of type void, bool, or std::coroutine_handle<Z> for some
// type Z.
QualType RetType = AwaitSuspend->getCallReturnType(S.Context);
// Experimental support for coroutine_handle returning await_suspend.