We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc7e7bf commit da5b8ddCopy full SHA for da5b8dd
clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
@@ -278,7 +278,7 @@ CIRGenFunction::emitCoroutineBody(const CoroutineBodyStmt &s) {
278
279
static bool memberCallExpressionCanThrow(const Expr *e) {
280
if (const auto *ce = dyn_cast<CXXMemberCallExpr>(e))
281
- if (const FunctionProtoType *proto =
+ if (const auto *proto =
282
ce->getMethodDecl()->getType()->getAs<FunctionProtoType>())
283
if (isNoexceptExceptionSpec(proto->getExceptionSpecType()) &&
284
proto->canThrow() == CT_Cannot)
0 commit comments