]> granicus.if.org Git - clang/commit
In ARC, non-atomic getters do not need to retain and autorelease
authorJohn McCall <rjmccall@apple.com>
Fri, 22 Jul 2011 05:23:13 +0000 (05:23 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 22 Jul 2011 05:23:13 +0000 (05:23 +0000)
commitba3dd902d1cde09776a50c1adf2cd40bf0a15a7f
tree7c26e9774d7744a75d29cff9a105acaa251b5812
parentda6d976b0f2470bb3f854913bc3af3245845ad60
In ARC, non-atomic getters do not need to retain and autorelease
their loaded values, although it still worth doing this for __weak
properties to get the autoreleased-return-value optimization.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjC.cpp
test/CodeGenObjC/arc.m