================
@@ -768,6 +779,41 @@ struct GetReturnObjectManager {
CGF.EmitAutoVarInit(GroEmission);
Builder.CreateStore(Builder.getTrue(), GroActiveFlag);
}
+
+ void EmitGroConv() {
+ // GRO conversion is unnecessary when get_return_object's type matches the
+ // coroutine return type.
+ if (DirectEmit)
+ return;
+
+ auto *InsertPt = Builder.GetInsertBlock();
----------------
NewSigma wrote:
Done. I recorded `final.exit` block when we emit the final suspend expression.
https://github.com/llvm/llvm-project/pull/151067
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits