The commit r288866 introduced guaranteed copy elision to C++ 17. This unfortunately broke the lambda to block conversion in C++17 (the compiler crashes when performing IRGen). This patch fixes the conversion by avoiding copy elision for the capture that captures the lambda that's used in the block created by lambda to block conversion process.
Details
Details
- Reviewers
rjmccall ahatanak rsmith - Commits
- rGb4791c7595eb: Fix lambda to block conversion in C++17 by avoiding copy elision for the lambda…
rC299646: Fix lambda to block conversion in C++17 by avoiding copy elision for the
rL299646: Fix lambda to block conversion in C++17 by avoiding copy elision for the
Diff Detail
Diff Detail
- Repository
- rL LLVM