[PATCH] D25349: [coroutines] Build fallthrough and set_exception statements.

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 6 15:58:45 PDT 2016


majnemer added inline comments.


> AnalysisBasedWarnings.cpp:537
>    if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
> -    ReturnsVoid = FD->getReturnType()->isVoidType();
> +    if (const CoroutineBodyStmt *CBody = dyn_cast<CoroutineBodyStmt>(Body))
> +      ReturnsVoid = CBody->getFallthroughHandler() != nullptr;

`const auto *`

https://reviews.llvm.org/D25349





More information about the cfe-commits mailing list