aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorMartin Böhme <mboehme@google.com>2020-05-19 08:43:46 +0200
committerDmitri Gribenko <gribozavr@gmail.com>2020-05-19 09:21:26 +0200
commit4c09289f635c4291c41fe4396afba4ba839d265b (patch)
treec71d419c25b683b4665bbfccf350b05969aa689f /clang/lib/CodeGen/CGClass.cpp
parent61f859785f6ff3d4c74436570d246da8bbec8664 (diff)
downloadllvm-4c09289f635c4291c41fe4396afba4ba839d265b.zip
llvm-4c09289f635c4291c41fe4396afba4ba839d265b.tar.gz
llvm-4c09289f635c4291c41fe4396afba4ba839d265b.tar.bz2
[clang] Add an API to retrieve implicit constructor arguments.
Summary: This is needed in Swift for C++ interop -- see here for the corresponding Swift change: https://github.com/apple/swift/pull/30630 As part of this change, I've had to make some changes to the interface of CGCXXABI to return the additional parameters separately rather than adding them directly to a `CallArgList`. Reviewers: rjmccall Reviewed By: rjmccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79942
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 017a29e..05e7aa7 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -2165,7 +2165,7 @@ void CodeGenFunction::EmitCXXConstructorCall(const CXXConstructorDecl *D,
}
// Insert any ABI-specific implicit constructor arguments.
- CGCXXABI::AddedStructorArgs ExtraArgs =
+ CGCXXABI::AddedStructorArgCounts ExtraArgs =
CGM.getCXXABI().addImplicitConstructorArgs(*this, D, Type, ForVirtualBase,
Delegating, Args);