-Warc-repeated-use-of-weak: look through explicit casts on assigned values.
authorJordan Rose <jordan_rose@apple.com>
Wed, 10 Oct 2012 16:43:06 +0000 (16:43 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 10 Oct 2012 16:43:06 +0000 (16:43 +0000)
commite723a27ffebe0f62d647c60eb8d71bd554631473
tree622889f771daee1da92e33b4df89ed0e69e45775
parent2bd991a1c09a94c76c8e38fa32e57ad7a9b111c8
-Warc-repeated-use-of-weak: look through explicit casts on assigned values.

Reading from a weak property, casting the result, and assigning to a
strong pointer should still be considered safe.

llvm-svn: 165629
clang/lib/Sema/ScopeInfo.cpp
clang/test/SemaObjC/arc-repeated-weak.mm