[clang] [CIR] Emit promise declaration in coroutine (PR #166683)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 8 14:49:45 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;
----------------
Andres-Salamanca wrote:
I believe this is mainly a matter of personal preference, depending on how many parameters functions typically have. I don’t think there’s a specific reason behind choosing 4. Do you think it would be better to leave it as 0? I tested it, and the default capacity appears to be 6.
https://github.com/llvm/llvm-project/pull/166683
More information about the cfe-commits
mailing list