This revision was automatically updated to reflect the committed changes.
Closed by commit rL281682: [CodeGen][ObjC] Block captures should inherit the
type of the captured (authored by ahatanak).
Changed prior to commit:
https://reviews.llvm.org/D21104?vs=64199=71575#toc
Repository:
rL LLVM
rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.
LGTM.
https://reviews.llvm.org/D21104
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
ahatanak updated this revision to Diff 64199.
ahatanak added a comment.
Rebase.
https://reviews.llvm.org/D21104
Files:
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGBlocks.h
test/CodeGenObjCXX/lambda-expressions.mm
Index: test/CodeGenObjCXX/lambda-expressions.mm
ahatanak created this revision.
ahatanak added a reviewer: rjmccall.
ahatanak added a subscriber: cfe-commits.
This patch fixes a bug in code-gen where it uses the type of the declared
variable rather than the type of the capture of the enclosing lambda or block
for the block capture. For