Skip to content

Commit 3efff6c

Browse files
committed
use isa_and_present helper
1 parent cca0eac commit 3efff6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseCXXInlineMethods.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ NamedDecl *Parser::ParseCXXInlineMethodDef(
143143
}
144144

145145
Decl *PrevDecl = FnD->getPreviousDecl();
146-
if (PrevDecl && isa<FunctionDecl>(PrevDecl) &&
146+
if (isa_and_present<FunctionDecl>(PrevDecl) &&
147147
PrevDecl->getLexicalDeclContext() == FnD->getLexicalDeclContext()) {
148148
Actions.CheckForFunctionRedefinition(FnD->getAsFunction(),
149149
cast<FunctionDecl>(PrevDecl));

0 commit comments

Comments
 (0)