[clang] [clang][CodeGen] Promote point of GRO(CWG2563) (PR #151067)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 14 19:24:09 PST 2025
================
@@ -768,6 +781,76 @@ struct GetReturnObjectManager {
CGF.EmitAutoVarInit(GroEmission);
Builder.CreateStore(Builder.getTrue(), GroActiveFlag);
}
+ // The GRO returns either when it is first suspended or when it completes
+ // without ever being suspended. The EmitGroConv function evaluates these
+ // conditions and executes the conversion if true.
----------------
ChuanqiXu9 wrote:
nit: perform the conversion if needed
https://github.com/llvm/llvm-project/pull/151067
More information about the cfe-commits
mailing list