[clang] [CIR] Implement CoawaitExpr for ComplexType (PR #194027)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 13:57:47 PDT 2026


================
@@ -558,12 +558,12 @@ emitSuspendExpression(CIRGenFunction &cgf, CGCoroData &coro,
           if (!awaitRes.rv.isIgnored()) {
             // Create the alloca in the block before the scope wrapping
             // cir.await.
+            mlir::Value value = awaitRes.rv.getAnyValue();
----------------
andykaylor wrote:

If `awaitRes` is an aggregate, this will be UB.

https://github.com/llvm/llvm-project/pull/194027


More information about the cfe-commits mailing list