mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
HasFormOfMemberPointer implies IsAddressOfOperand for an overload set. Simplify
llvm-svn: 141878
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user