A selector match between two Objective-C methods does *not* guarantee
authorDouglas Gregor <dgregor@apple.com>
Thu, 17 May 2012 23:13:29 +0000 (23:13 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 17 May 2012 23:13:29 +0000 (23:13 +0000)
commit0bf70f4be8b24147f81ff0afda7a4b3fad8c3a63
tree3c8e5dd87b69b4bcc1fdb4e8ae4849fa123c1346
parent097e37da0ea0800be7e51c2857014eeb6287eb30
A selector match between two Objective-C methods does *not* guarantee
that the methods have the same number of parameters, although we
certainly assumed this in many places. Objective-C can be insane
sometimes. Fixes <rdar://problem/11460990>.

llvm-svn: 157025
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/test/SemaObjC/related-result-type-inference.m