}
}
- // 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;
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);