@@ -4746,7 +4746,7 @@ namespace {
4746
4746
auto loc = Impl.importSourceLoc (decl->getLocation ());
4747
4747
auto dc = Impl.importDeclContextOf (
4748
4748
decl, importedName.getEffectiveContext ());
4749
-
4749
+
4750
4750
SmallVector<GenericTypeParamDecl *, 4 > genericParams;
4751
4751
for (auto ¶m : *decl->getTemplateParameters ()) {
4752
4752
auto genericParamDecl =
@@ -5529,7 +5529,7 @@ namespace {
5529
5529
objcClass->getDeclaredType ());
5530
5530
Impl.SwiftContext .evaluator .cacheOutput (ExtendedNominalRequest{result},
5531
5531
std::move (objcClass));
5532
-
5532
+
5533
5533
Identifier categoryName;
5534
5534
if (!decl->getName ().empty ())
5535
5535
categoryName = Impl.SwiftContext .getIdentifier (decl->getName ());
@@ -9156,6 +9156,9 @@ void ClangImporter::Implementation::swiftify(FuncDecl *MappedDecl) {
9156
9156
if (!ClangDecl)
9157
9157
return ;
9158
9158
9159
+ if (ClangDecl->getNumParams () != MappedDecl->getParameters ()->size ())
9160
+ return ;
9161
+
9159
9162
llvm::SmallString<128 > MacroString;
9160
9163
// We only attach the macro if it will produce an overload. Any __counted_by
9161
9164
// will produce an overload, since UnsafeBufferPointer is still an improvement
@@ -9571,7 +9574,7 @@ ClangImporter::Implementation::importDeclImpl(const clang::NamedDecl *ClangDecl,
9571
9574
Result = importDecl (UnderlyingDecl, version);
9572
9575
SkippedOverTypedef = true ;
9573
9576
}
9574
-
9577
+
9575
9578
if (!Result) {
9576
9579
SwiftDeclConverter converter (*this , version);
9577
9580
Result = converter.Visit (ClangDecl);
0 commit comments