[NFC] Replace a not-null-check && isa with isa_and_nonnull

This commit is contained in:
Erich Keane 2022-03-23 12:55:47 -07:00
parent e2074de6a8
commit 3fb101a691
1 changed files with 2 additions and 1 deletions

View File

@ -1133,7 +1133,8 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
EmitFunctionProlog(*CurFnInfo, CurFn, Args);
if (D && isa<CXXMethodDecl>(D) && cast<CXXMethodDecl>(D)->isInstance()) {
if (isa_and_nonnull<CXXMethodDecl>(D) &&
cast<CXXMethodDecl>(D)->isInstance()) {
CGM.getCXXABI().EmitInstanceFunctionProlog(*this);
const CXXMethodDecl *MD = cast<CXXMethodDecl>(D);
if (MD->getParent()->isLambda() &&