forked from OSchip/llvm-project
HasFormOfMemberPointer implies IsAddressOfOperand for an overload set. Simplify
llvm-svn: 141878
This commit is contained in:
parent
cda2270217
commit
f4a06c2104
|
@ -894,8 +894,8 @@ bool Sema::isExprCallable(const Expr &E, QualType &ZeroArgCallReturnTy,
|
|||
}
|
||||
}
|
||||
|
||||
// Ignore overloads that are the pointer-to-member.
|
||||
if (FR.IsAddressOfOperand && FR.HasFormOfMemberPointer)
|
||||
// Ignore overloads that are pointer-to-member constants.
|
||||
if (FR.HasFormOfMemberPointer)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
|
|
@ -3550,7 +3550,7 @@ Sema::ActOnCallExpr(Scope *S, Expr *Fn, SourceLocation LParenLoc,
|
|||
OverloadExpr::FindResult find = OverloadExpr::find(Fn);
|
||||
|
||||
// We aren't supposed to apply this logic for if there's an '&' involved.
|
||||
if (!(find.IsAddressOfOperand && find.HasFormOfMemberPointer)) {
|
||||
if (!find.HasFormOfMemberPointer) {
|
||||
OverloadExpr *ovl = find.Expression;
|
||||
if (isa<UnresolvedLookupExpr>(ovl)) {
|
||||
UnresolvedLookupExpr *ULE = cast<UnresolvedLookupExpr>(ovl);
|
||||
|
|
Loading…
Reference in New Issue