diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-08-13 21:24:14 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-08-13 21:24:14 +0000 |
commit | dc812ef2ed5d41e1696c08f0c4c21a94c21b4521 (patch) | |
tree | 6e2e5b13cb10008b167ab01399dae27166c83e33 /lib/Sema/SemaOverload.cpp | |
parent | 679b2ef02d616d40f47fa6dc4d92039e3d5e01f6 (diff) |
Objective-C. Minor refactoring of my last patch.
// rdar://16808765
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 660d60da2a..09469cea77 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -5678,7 +5678,11 @@ Sema::AddOverloadCandidate(FunctionDecl *Function, } ObjCMethodDecl *Sema::SelectBestMethod(Selector Sel, MultiExprArg Args, - SmallVectorImpl<ObjCMethodDecl*>& Methods) { + bool IsInstance) { + SmallVector<ObjCMethodDecl*, 4> Methods; + if (!CollectMultipleMethodsInGlobalPool(Sel, Methods, IsInstance)) + return nullptr; + for (unsigned b = 0, e = Methods.size(); b < e; b++) { bool Match = true; ObjCMethodDecl *Method = Methods[b]; |