[PATCH] D154007: Reland "Try to implement lambdas with inalloca parameters by forwarding without use of inallocas."
Amy Huang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 20 17:03:05 PDT 2023
akhuang added inline comments.
================
Comment at: clang/lib/CodeGen/CGClass.cpp:3095
+ StringRef CallOpName = CallOpFn->getName();
+ std::string ImplName = ("__impl" + CallOpName).str();
+
----------------
The old code tried to find the "<lambda_0>" part of the function name and replace the front with "?__impl@", so that the function name was consistent with the mangling scheme. But apparently there are some cases where when the function name is too long, it uses a hash instead (?), so the attempt to find the <lambda_0> was failing.
I couldn't find a good way to name this function through the actual mangling code -- is it fine to just add "__impl" to the front and have it not be mangled correctly?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154007/new/
https://reviews.llvm.org/D154007
More information about the cfe-commits
mailing list