objective-C blocks: Make sure that identical logic is used
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 28 Nov 2012 23:12:17 +0000 (23:12 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 28 Nov 2012 23:12:17 +0000 (23:12 +0000)
commit998f0a336012e25f72acdd53f5a6b1cf34904e7a
tree44445d6cf7591273ebfa21531e6243a424a18206
parenta118c6a8c0e9a6fa107460682d4ded421631941a
objective-C blocks: Make sure that identical logic is used
in deciding a copy/dispose field is needed in a byref structure
and when generating the copy/dispose helpers. In certain
cases, these fields were being added but no copy/dispose was
being generated. This was uncovered in ARC, but not in MRR.
// rdar://12759433

llvm-svn: 168825
clang/include/clang/AST/ASTContext.h
clang/lib/AST/ASTContext.cpp
clang/lib/CodeGen/CGBlocks.cpp
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp
clang/lib/Rewrite/Frontend/RewriteObjC.cpp
clang/test/CodeGenObjC/block-byref-variable-layout.m