From: Fangrui Song Date: Fri, 10 May 2019 06:59:50 +0000 (+0000) Subject: Delete write-only HasQualifiers after rC360370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=424ba721d32386a24cb06ab3cafb548f47c3b156;p=clang Delete write-only HasQualifiers after rC360370 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360408 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 3581d97c8b..1d7c6d7c8b 100644 --- a/lib/AST/ExprConstant.cpp +++ b/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);