================
@@ -182,11 +187,22 @@ RValue CIRGenFunction::emitCoroutineFrame() {
static void createCoroData(CIRGenFunction &cgf,
CIRGenFunction::CGCoroInfo &curCoro,
- cir::CallOp coroId) {
- assert(!curCoro.data && "EmitCoroutineBodyStatement called twice?");
+ cir::CoroIntrinsicIdOp coroId,
+ CallExpr const *coroIdExpr = nullptr) {
+
+ if (curCoro.data) {
----------------
erichkeane wrote:
IS this really worth the effort here? This is doing a lot of work to do a
fancy 'assert', right? IS any of this actually live code? IS there any live
code that would hit this in classic codegen?
https://github.com/llvm/llvm-project/pull/211699
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits