HomePhabricator

[Sema][ObjC] Infer availability of +new from availability of -init.

Description

[Sema][ObjC] Infer availability of +new from availability of -init.

When defined in NSObject, +new will call -init. If -init has been marked
unavailable, diagnose uses of +new.

rdar://18335828

Differential revision: https://reviews.llvm.org/D51189

Details

Committed
epilkSep 10 2018, 3:20 PM
Differential Revision
D51189: [Sema][ObjC] Infer availability of +new from availability of -init
Branches
Unknown
Tags
Unknown