aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGCall.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/CGCall.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/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index b8bd8a7..6ae13c3 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -326,7 +326,7 @@ CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) {
if (PassParams)
appendParameterTypes(*this, argTypes, paramInfos, FTP);
- CGCXXABI::AddedStructorArgs AddedArgs =
+ CGCXXABI::AddedStructorArgCounts AddedArgs =
TheCXXABI.buildStructorSignature(GD, argTypes);
if (!paramInfos.empty()) {
// Note: prefix implies after the first param.