The conditional cast is unnecessary since we know that it will always
succeed. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294853
91177308-0d34-0410-b5e6-
96231b3b80d8
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)