[clang] [llvm] [Coroutines] Mark parameter allocas with coro.outside.frame metadata (PR #127653)
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 28 00:41:52 PST 2025
================
@@ -855,6 +855,16 @@ void CodeGenFunction::EmitCoroutineBody(const CoroutineBodyStmt &S) {
// Create parameter copies. We do it before creating a promise, since an
// evolution of coroutine TS may allow promise constructor to observe
// parameter copies.
+ for (const ParmVarDecl *Parm : FnArgs) {
+ // If the original param is in an alloca, exclude it from the coroutine
+ // frame. The parameter copy will be part of the frame.
----------------
zmodem wrote:
Done.
https://github.com/llvm/llvm-project/pull/127653
More information about the cfe-commits
mailing list