================
@@ -523,6 +523,12 @@ void CodeGenFunction::FinishFunction(SourceLocation
EndLoc) {
NormalCleanupDest = Address::invalid();
}
+ if (getLangOpts().Coroutines && isCoroutine()) {
+ auto *Record = FnRetTy->getAsCXXRecordDecl();
+ if (Record && Record->hasAttr<CoroAwaitElidableAttr>())
+ CurFn->addFnAttr(llvm::Attribute::CoroGenNoallocRamp);
+ }
----------------
yuxuanchen1997 wrote:
I will apply this suggestion in the next push.
https://github.com/llvm/llvm-project/pull/99282
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits