From 59312cb0b81ca13f0674dde66b8e87a8d51d4dda Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Tue, 3 Dec 2019 21:15:17 -0500 Subject: [PATCH] Fix warning on unused variable. NFC. --- clang/lib/AST/Expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index a73531ad5fad..3bc2ea60aa14 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -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(MemberDecl)) { + if (isa(MemberDecl)) { DeclContext *DC = MemberDecl->getDeclContext(); // dyn_cast_or_null is used to handle objC variables which do not // have a declaration context.