forked from OSchip/llvm-project
[NFC] Replace a not-null-check && isa with isa_and_nonnull
This commit is contained in:
parent
e2074de6a8
commit
3fb101a691
|
@ -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() &&
|
||||
|
|
Loading…
Reference in New Issue