Skip to content

Commit d9ce07f

Browse files
committed
Clang importer: when dropping the variadic parameter, drop the variadic parameter.
Fixes iOS build.
1 parent 2ea58f9 commit d9ce07f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2198,7 +2198,7 @@ auto ClangImporter::Implementation::importFullName(
21982198
if (objcMethod->isVariadic() && shouldMakeSelectorNonVariadic(selector)) {
21992199
--numArgs;
22002200
result.DroppedVariadic = true;
2201-
params = params.slice(1);
2201+
params = params.drop_back(1);
22022202
}
22032203

22042204
for (unsigned index = 0; index != numArgs; ++index) {

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3162,7 +3162,7 @@ namespace {
31623162

31633163
// If we dropped the variadic, handle it now.
31643164
if (importedName.DroppedVariadic) {
3165-
params = params.slice(1);
3165+
params = params.drop_back(1);
31663166
variadic = false;
31673167
}
31683168

0 commit comments

Comments
 (0)