]> granicus.if.org Git - clang/commitdiff
Delete write-only HasQualifiers after rC360370
authorFangrui Song <maskray@google.com>
Fri, 10 May 2019 06:59:50 +0000 (06:59 +0000)
committerFangrui Song <maskray@google.com>
Fri, 10 May 2019 06:59:50 +0000 (06:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360408 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 3581d97c8b1722addfb50fb6bb1c0fc5124f02d8..1d7c6d7c8bf16190fd776da116494f975257ba48 100644 (file)
@@ -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<BinaryOperator>(Callee)) {
         // Indirect bound member calls ('.*' or '->*').
         Member = HandleMemberPointerAccess(Info, BE, ThisVal, false);