[PATCH] D123319: Change how we handle auto return types for lambda operator() to be consistent with gcc

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 7 10:11:52 PDT 2022


aprantl added a comment.

I think this is reasonable, but could you add a testcase?



================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1684
+
+    if (AT->isDeduced() && ThisPtr->getPointeeCXXRecordDecl()->isLambda())
+      Elts.push_back(getOrCreateType(AT->getDeducedType(),Unit));
----------------
Can you add a comment here, explaining why lambdas are special?


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

https://reviews.llvm.org/D123319



More information about the cfe-commits mailing list