]> granicus.if.org Git - clang/commit
Implement the C++0x move optimization for Automatic Reference Counting
authorDouglas Gregor <dgregor@apple.com>
Wed, 22 Jun 2011 16:32:26 +0000 (16:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 22 Jun 2011 16:32:26 +0000 (16:32 +0000)
commitd1bd98a2c239d2a730b07f7c1b2c8c8718eaeac8
tree6748ae1078f490e4e929ce009cebb8628a9d7f4e
parentd7b23167763f43d3e76b0de26141b1e52613ee3c
Implement the C++0x move optimization for Automatic Reference Counting
objects, so that we steal the retain count of a temporary __strong
pointer (zeroing out that temporary), eliding a retain/release
pair. Addresses <rdar://problem/9364932>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133621 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjC.cpp
test/CodeGenObjCXX/arc-move.mm [new file with mode: 0644]