diff --git a/clang/lib/Sema/SemaCoroutine.cpp b/clang/lib/Sema/SemaCoroutine.cpp --- a/clang/lib/Sema/SemaCoroutine.cpp +++ b/clang/lib/Sema/SemaCoroutine.cpp @@ -643,11 +643,11 @@ StmtResult InitSuspend = buildSuspends("initial_suspend"); if (InitSuspend.isInvalid()) - return true; + return false; StmtResult FinalSuspend = buildSuspends("final_suspend"); if (FinalSuspend.isInvalid()) - return true; + return false; ScopeInfo->setCoroutineSuspends(InitSuspend.get(), FinalSuspend.get());