From c4f12013df8cdf17662514798d597d6d79561fa4 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 10 May 2019 06:59:50 +0000 Subject: [PATCH] Delete write-only HasQualifiers after rC360370 llvm-svn: 360408 --- clang/lib/AST/ExprConstant.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 3581d97c8b17..1d7c6d7c8bf1 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -4910,7 +4910,6 @@ public: const FunctionDecl *FD = nullptr; LValue *This = nullptr, ThisVal; auto Args = llvm::makeArrayRef(E->getArgs(), E->getNumArgs()); - bool HasQualifier = false; // Extract function decl and 'this' pointer from the callee. if (CalleeType->isSpecificBuiltinType(BuiltinType::BoundMember)) { @@ -4921,7 +4920,6 @@ public: return false; Member = ME->getMemberDecl(); This = &ThisVal; - HasQualifier = ME->hasQualifier(); } else if (const BinaryOperator *BE = dyn_cast(Callee)) { // Indirect bound member calls ('.*' or '->*'). Member = HandleMemberPointerAccess(Info, BE, ThisVal, false);