[PATCH] D90634: Implement Lambda Conversion Operators for All CCs for MSVC.

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 17:43:41 PST 2020


erichkeane added inline comments.


================
Comment at: clang/test/CodeGenCXX/lambda-conversion-op-cc.cpp:10
 void usage() {
   auto lambda = [](int i, float f, double d) CC { return i + f + d; };
 
----------------
rsmith wrote:
> Does lambda-to-function-pointer decay still work (eg, `+lambda` or `*lambda`)? It'd be good to test that, since it's a fairly common idiom.
It does! I tested that in the last patch, but don't seem to have a codegen test for it, so I'll make sure to add it.

I ended up having to do a tiebreaker as you suggested in that patch as well.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90634/new/

https://reviews.llvm.org/D90634



More information about the cfe-commits mailing list