================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits