aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2021-05-13 20:16:54 -0700
committerAlex Lorenz <arphaman@gmail.com>2021-05-19 12:13:57 -0700
commit50be48b0f3c884a87ddf19c7c51abcab035c1efb (patch)
treef8631689b00e3113201fd846b9dc0e083a0866a5 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent2db182ff8d0c0d50155bf70d1db60b4e78c348ca (diff)
downloadllvm-50be48b0f3c884a87ddf19c7c51abcab035c1efb.zip
llvm-50be48b0f3c884a87ddf19c7c51abcab035c1efb.tar.gz
llvm-50be48b0f3c884a87ddf19c7c51abcab035c1efb.tar.bz2
[clang][ObjC] Allow different availability annotation on a method
when implementing an optional protocol requirement When an Objective-C method implements an optional protocol requirement, allow the method to use a newer introduced or older obsoleted availability version than what's specified on the method in the protocol itself. This allows SDK adopters to adopt an optional method from a protocol later than when the method is introduced in the protocol. The users that call an optional method on an object that conforms to this protocol are supposed to check whether the object implements the method or not, so a lack of appropriate `if (@available)` check for a new OS version is not a cause of concern as there's already another runtime check that's required. Differential Revision: https://reviews.llvm.org/D102459
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions