]> granicus.if.org Git - clang/commit
Extend checkUnsafeAssigns() to also handle assigning an object literal to a weak...
authorTed Kremenek <kremenek@apple.com>
Fri, 21 Dec 2012 08:04:28 +0000 (08:04 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 21 Dec 2012 08:04:28 +0000 (08:04 +0000)
commit9d0840141a0922e2d8b1d322f21ef51803ede23d
tree4d653e340bbfdfb1cb007f45a531ec5880933b3e
parentb1ea510de0ef4ebfbbe8fa7668ab1635410fc080
Extend checkUnsafeAssigns() to also handle assigning an object literal to a weak reference.

Thanks to Jordan Rose and John McCall for their sage code review.

Fixes <rdar://problem/12569201>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170864 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/SemaObjC/arc.m
test/SemaObjC/warn-retain-block-property.m