diff options
author | Brian Kelley <bkelley@microsoft.com> | 2017-03-29 18:09:02 +0000 |
---|---|---|
committer | Brian Kelley <bkelley@microsoft.com> | 2017-03-29 18:09:02 +0000 |
commit | 11352a8fb9647d65bc46c190730769512d2cbad2 (patch) | |
tree | 61b4c4dd61624c90abff87f51c8580b0275854c7 /clang/lib/Sema/SemaDecl.cpp | |
parent | ff211bb5a6cbbd52adc2618bcf0f29550207f670 (diff) | |
download | bcm5719-llvm-11352a8fb9647d65bc46c190730769512d2cbad2.tar.gz bcm5719-llvm-11352a8fb9647d65bc46c190730769512d2cbad2.zip |
[Objective-C] Fix "weak-unavailable" warning with -fobjc-weak
Summary: 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.
Reviewers: rsmith, doug.gregor, rjmccall
Reviewed By: rjmccall
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D31006
llvm-svn: 299014
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions