[clang] [CIR] Change previous coroutine builtins to have their own coro intrinsic ops (PR #211699)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 24 06:59:40 PDT 2026


================
@@ -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


More information about the cfe-commits mailing list