diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-13 18:26:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-13 18:26:27 +0000 |
commit | 64a371ff8d525880e519a43fc522cbdc79fc4a89 (patch) | |
tree | f9d9fb50edf686ae9253957b268e218610359d7e /lib/Sema/SemaExpr.cpp | |
parent | ee697e69a2063b65bfd0534248e4848461aca3f4 (diff) |
HasFormOfMemberPointer implies IsAddressOfOperand for an overload set. Simplify
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index bfe98498d8..3818e3d3a1 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -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); |