Go to file
Faisal Vali 051e3a2b7d [cxx1z-constexpr-lambda] Implement captures - thus completing implementation of constexpr lambdas.
Enable evaluation of captures within constexpr lambdas by using a strategy similar to that used in CodeGen:
  - when starting evaluation of a lambda's call operator, create a map from VarDecl's to a closure's FieldDecls
  - every time a VarDecl (or '*this) that represents a capture is encountered while evaluating the expression via the expression evaluator (specifically the LValueEvaluator) in ExprConstant.cpp - it is replaced by the corresponding FieldDecl LValue (an Lvalue-to-Rvalue conversion on this LValue representation then determines the right rvalue when needed).

Thanks to Richard Smith and Hubert Tong for their review and feedback!

https://reviews.llvm.org/D29748

llvm-svn: 295279
2017-02-16 04:12:21 +00:00
clang [cxx1z-constexpr-lambda] Implement captures - thus completing implementation of constexpr lambdas. 2017-02-16 04:12:21 +00:00
clang-tools-extra [clang-tidy] Fix test modernize-return-braced-init-list 2017-02-15 17:37:58 +00:00
compiler-rt Extract *.a to *.bc conversion into separate script. 2017-02-16 02:12:18 +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 Move BufferPtr into the block where it it being used 2017-02-12 21:33:49 +00:00
libcxx Add tests for noexcept functions 2017-02-13 22:44:39 +00:00
libcxxabi Fix couple of test failures when using the LIBCXXABI_SILENT_TERMINATE mode. 2017-02-15 13:43:05 +00:00
libunwind Revert "[libunwind][CMake] Use libc++ headers when available" 2017-02-15 17:15:41 +00:00
lld Add CopyRelSection instances to BSS in the regular way. 2017-02-16 04:12:19 +00:00
lldb Fix a bug introduced in r235737 where code with important side 2017-02-16 02:08:33 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm Split WinCOFFObjectWriter::writeSection. 2017-02-16 02:56:06 +00:00
openmp [OpenMP] libomptarget: Protect parent struct from being deallocated 2017-02-15 20:45:37 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeLICM] Add forgotten unittests in previous commit. NFC. 2017-02-15 17:19:22 +00:00