When possible, move __block variables to the heap rather than copying them.
authorDouglas Gregor <dgregor@apple.com>
Thu, 7 Mar 2013 22:38:24 +0000 (22:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 7 Mar 2013 22:38:24 +0000 (22:38 +0000)
commitca00645e4cc0fe255e7cf31545254cf6bb97e90e
treebd535280c72fd8b09d6539aff04a6228d5969a68
parent3d27e6603a1605ccf6bae568ca86ddc5aa266f96
When possible, move __block variables to the heap rather than copying them.

Fixes <rdar://problem/13330126>.

llvm-svn: 176663
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/blocks.cpp