================
@@ -564,9 +585,9 @@ struct BuiltinTypeMethodBuilder {
                                       OK_Ordinary);
   }
 
-  BuiltinTypeMethodBuilder &
-  callBuiltin(StringRef BuiltinName, ArrayRef<Expr *> CallParms,
-              bool AddResourceHandleAsFirstArg = true) {
+  template <typename... Ts>
+  BuiltinTypeMethodBuilder &callBuiltin(StringRef BuiltinName, Ts... ArgSpecs) 
{
+    SmallVector<Expr *> 
Args{convertPlaceholder(std::forward<Ts>(ArgSpecs))...};
----------------
tex3d wrote:

Yes, `SmallVector` will have stack allocated storage.  Its size is derived from 
the initialization, which is dependent on the number of ArgSpecs.

https://github.com/llvm/llvm-project/pull/117789
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to