diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-05-14 18:11:41 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-05-14 18:11:41 +0000 |
commit | 9afe1308ed19dffc281dca5cfbe521826754980f (patch) | |
tree | 80b53c11ddcaa72d450187bfd8f707fd8cacf67b /lib/Sema/SemaExprCXX.cpp | |
parent | 236673e8fbd391cc7827efcaa64320344900d348 (diff) |
When there are any member new operators, global versions aren't looked up at all.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 57aae29631..e2a21d9b3f 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -533,8 +533,6 @@ bool Sema::FindAllocationOverload(SourceLocation StartLoc, SourceRange Range, } case OR_No_Viable_Function: - if (AllowMissing) - return false; Diag(StartLoc, diag::err_ovl_no_viable_function_in_call) << Name << Range; PrintOverloadCandidates(Candidates, /*OnlyViable=*/false); |