Go to file
Richard Smith c38498f046 PR23334: Perform semantic checking of lambda capture initialization in the right context.
Previously we'd try to perform checks on the captures from the middle of
parsing the lambda's body, at the point where we detected that a variable
needed to be captured. This was wrong in a number of subtle ways. In
PR23334, we couldn't correctly handle the list of potential odr-uses
resulting from the capture, and our attempt to recover from that resulted
in a use-after-free.

We now defer building the initialization expression until we leave the lambda
body and return to the enclosing context, where the initialization does the
right thing. This patch only covers lambda-expressions, but we should apply
the same change to blocks and captured statements too.

llvm-svn: 235921
2015-04-27 21:27:54 +00:00
clang PR23334: Perform semantic checking of lambda capture initialization in the right context. 2015-04-27 21:27:54 +00:00
clang-tools-extra Fix clang-tools-extra build after clang r235614. 2015-04-23 20:38:48 +00:00
compiler-rt [TSan] Move new/delete interceptors into a separate source file. NFC. 2015-04-27 19:33:55 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Fix compilation warnings without cl_khr_fp64 2015-04-24 19:54:17 +00:00
libcxx Fixed an 'extra tokens at end of #endif directive' warning in experimental/ratio 2015-04-23 16:45:08 +00:00
libcxxabi libc++abi: enable LLVM unwinder by default for ARM 2015-04-27 18:19:33 +00:00
libunwind unwind: remove inclusion of private_typeinfo.h 2015-04-27 16:51:52 +00:00
lld Remove trailing whitespace characters. 2015-04-27 17:18:04 +00:00
lldb XFail flakey test. 2015-04-27 20:57:24 +00:00
llgo [llgo] add buildbot-slave config 2015-04-08 01:41:46 +00:00
llvm Add missing library dependency in libPDB. 2015-04-27 21:23:12 +00:00
openmp updated copyright date to 2015 2015-04-16 11:10:17 +00:00
polly Extract IslNodeBuilder into its own file 2015-04-27 12:32:24 +00:00