]> granicus.if.org Git - clang/commit
[Objective-C] Fix __weak type traits with -fobjc-weak
authorBrian Kelley <bkelley@microsoft.com>
Wed, 29 Mar 2017 17:40:35 +0000 (17:40 +0000)
committerBrian Kelley <bkelley@microsoft.com>
Wed, 29 Mar 2017 17:40:35 +0000 (17:40 +0000)
commit16b7f511e8cd5f5ea6c57a11a238f4aa56d33d7f
treedbc87a592c3e23f100de8ae0f625fb3f5a1e9d81
parentf2760ac904beaab3c5d05b5c1af7e9a3bc50f1f4
[Objective-C] Fix __weak type traits with -fobjc-weak

Summary: Similar to ARC, in ObjCWeak Objective-C object pointers qualified with a weak lifetime are not POD or trivial types. Update the type trait code to reflect this. Copy and adapt the arc-type-traits.mm test case to verify correctness.

Reviewers: rsmith, doug.gregor, rjmccall

Reviewed By: rjmccall

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D31004

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299010 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Type.cpp
lib/Sema/SemaExprCXX.cpp
test/SemaObjCXX/objc-weak-type-traits.mm [new file with mode: 0644]