[clang] [CIR] Emit promise declaration in coroutine (PR #166683)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 7 17:00:10 PST 2025


================
@@ -152,6 +152,9 @@ class CIRGenFunction : public CIRGenTypeCache {
   /// global initializers.
   mlir::Operation *curFn = nullptr;
 
+  /// Save Parameter Decl for coroutine.
+  llvm::SmallVector<const ParmVarDecl *, 4> fnArgs;
----------------
andykaylor wrote:

Do we have a good reason for the 4 here?

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


More information about the cfe-commits mailing list