Fix warning on unused variable. NFC.

This commit is contained in:
Michael Liao 2019-12-03 21:15:17 -05:00
parent ed1756cfbe
commit 59312cb0b8
1 changed files with 1 additions and 1 deletions

View File

@ -1678,7 +1678,7 @@ MemberExpr *MemberExpr::Create(
MemberExpr *E = new (Mem) MemberExpr(Base, IsArrow, OperatorLoc, MemberDecl,
NameInfo, T, VK, OK, NOUR);
if (FieldDecl *Field = dyn_cast<FieldDecl>(MemberDecl)) {
if (isa<FieldDecl>(MemberDecl)) {
DeclContext *DC = MemberDecl->getDeclContext();
// dyn_cast_or_null is used to handle objC variables which do not
// have a declaration context.