[PATCH] D31669: Fix lambda to block conversion in C++17 by avoiding copy elision for the lambda capture used by the created block

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 4 09:35:17 PDT 2017


rjmccall added inline comments.


================
Comment at: include/clang/Sema/Initialization.h:124
+    /// is a lambda that's captured by a block it's converted to.
+    bool IsLambdaToBlockConversionEntity;
   };
----------------
It seems less invasive to just give this a new EntityKind.


Repository:
  rL LLVM

https://reviews.llvm.org/D31669





More information about the cfe-commits mailing list