]> granicus.if.org Git - clang/commit
ObjC kindof: order the methods in global pool relative to availability.
authorManman Ren <manman.ren@gmail.com>
Wed, 13 Apr 2016 23:43:56 +0000 (23:43 +0000)
committerManman Ren <manman.ren@gmail.com>
Wed, 13 Apr 2016 23:43:56 +0000 (23:43 +0000)
commit9f73022a9bfeb114f7067119884357ca826f70ea
treee31249c5fa16cef08b11cdcf32621c61077e791e
parent72ee8a085349f9f59e483dd1104ef20056cf92fd
ObjC kindof: order the methods in global pool relative to availability.

r265877 tries to put methods that are deprecated or unavailable to the
front of the global pool to emit diagnostics, but it breaks some of
our existing codes that depend on choosing a certain method for id
lookup.

This commit orders the methods with the same declaration with respect
to the availability, but do not order methods with different declaration.

rdar://25707511

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266264 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclObjC.cpp
test/SemaObjC/kindof.m
test/SemaObjC/multiple-method-names.m