[clang] [CIR] Upstream support for C++ member function calls (PR #140290)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Fri May 16 15:46:27 PDT 2025
================
@@ -109,6 +109,14 @@ struct CallArg {
class CallArgList : public llvm::SmallVector<CallArg, 8> {
public:
void add(RValue rvalue, clang::QualType type) { emplace_back(rvalue, type); }
+
+ /// Add all the arguments from another CallArgList to this one. After doing
+ /// this, the old CallArgList retains its list of arguments, but must not
+ /// be used to emit a call.
+ void addFrom(const CallArgList &other) {
+ insert(end(), other.begin(), other.end());
+ // TODO: Writebacks, CleanupsToDeactivate, StackBase???
----------------
bcardosolopes wrote:
Do these deserve missing features?
https://github.com/llvm/llvm-project/pull/140290
More information about the cfe-commits
mailing list