forked from OSchip/llvm-project
Sema: simplify conditional execution (NFC)
The conditional cast is unnecessary since we know that it will always succeed. NFC. llvm-svn: 294853
This commit is contained in:
parent
d59fa0e38a
commit
b893ed26ec
|
@ -3018,10 +3018,7 @@ Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
// Check for any possible shadowed member variables
|
||||
if (const auto *RD = cast<CXXRecordDecl>(CurContext))
|
||||
CheckShadowInheritedFields(Loc, Name, RD);
|
||||
|
||||
CheckShadowInheritedFields(Loc, Name, cast<CXXRecordDecl>(CurContext));
|
||||
} else {
|
||||
Member = HandleDeclarator(S, D, TemplateParameterLists);
|
||||
if (!Member)
|
||||
|
|
Loading…
Reference in New Issue