diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-03 20:45:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-03 20:45:27 +0000 |
commit | 18fe56863be253a27b940022d27a3101778adaf6 (patch) | |
tree | b2cf207b1ee2380ade5236d92c0e9758090f2946 /lib/Sema/SemaOverload.cpp | |
parent | 4fd7ffe4c990357cec0c74f216cacc9825e46048 (diff) |
Implicit support for direct initialization of objects of class type, e.g.,
X x(5, 7);
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 1c2f20b26b..4f02065bb1 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -1435,12 +1435,13 @@ Sema::AddOverloadCandidate(FunctionDecl *Function, /// AddOverloadCandidates - Add all of the function overloads in Ovl /// to the candidate set. void -Sema::AddOverloadCandidates(OverloadedFunctionDecl *Ovl, +Sema::AddOverloadCandidates(const OverloadedFunctionDecl *Ovl, Expr **Args, unsigned NumArgs, OverloadCandidateSet& CandidateSet, bool SuppressUserConversions) { - for (OverloadedFunctionDecl::function_iterator Func = Ovl->function_begin(); + for (OverloadedFunctionDecl::function_const_iterator Func + = Ovl->function_begin(); Func != Ovl->function_end(); ++Func) AddOverloadCandidate(*Func, Args, NumArgs, CandidateSet, SuppressUserConversions); |