[PATCH] D31006: [Objective-C] Fix "weak-unavailable" warning with -fobjc-weak
Brian T. Kelley via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 15 15:39:47 PDT 2017
bkelley created this revision.
clang should produce the same errors Objective-C classes that cannot be assigned to weak pointers under both -fobjc-arc and -fobjc-weak. Check for ObjCWeak along with ObjCAutoRefCount when analyzing pointer conversions. Add an -fobjc-weak pass to the existing arc-unavailable-for-weakref test cases to verify the behavior is the same.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11153 bytes
Desc: not available
More information about the cfe-commits