When copying an array into a lambda, destroy temporaries from
authorJohn McCall <rjmccall@apple.com>
Wed, 20 Jul 2016 21:02:43 +0000 (21:02 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 20 Jul 2016 21:02:43 +0000 (21:02 +0000)
commit4c7718d51b743b621d7c215eff78004c5ea40cd8
tree966770cb1473b82ee0cbdfd2e7776884d7d58375
parent0e4cf2f6b3e54f29d6eaf5b49b2e3235881a8ece
When copying an array into a lambda, destroy temporaries from
the copy-constructor immediately and enter a partial array
cleanup for previously-copied elements.

Fixes PR28595.

llvm-svn: 276180
clang/lib/CodeGen/CGClass.cpp
clang/test/CodeGenCXX/lambda-expressions.cpp