================ @@ -627,7 +627,7 @@ class Analyzer { IsNoexcept = isNoexcept(FD); } else if (auto *BD = dyn_cast<BlockDecl>(D)) { if (auto *TSI = BD->getSignatureAsWritten()) { - auto *FPT = TSI->getType()->getAs<FunctionProtoType>(); + auto *FPT = TSI->getType()->castAs<FunctionProtoType>(); ---------------- Sirraide wrote:
Actually, both of those questions are irrelevant because this entire code path is guarded by a check for `S.getLangOpts().CPlusPlus`. So yes, changing this to `castAs` is fine. https://github.com/llvm/llvm-project/pull/117176 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits