Skip to content

Commit 6b38074

Browse files
committed
Clang importer: When dropping a variadic parameter, update the selector as well
Fixes breakage on iOS.
1 parent 6aa6a58 commit 6b38074

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3162,6 +3162,8 @@ namespace {
31623162

31633163
// If we dropped the variadic, handle it now.
31643164
if (importedName.DroppedVariadic) {
3165+
selector = ObjCSelector(Impl.SwiftContext, selector.getNumArgs()-1,
3166+
selector.getSelectorPieces().drop_back());
31653167
params = params.drop_back(1);
31663168
variadic = false;
31673169
}

0 commit comments

Comments
 (0)