@@ -3376,11 +3376,8 @@ namespace {
3376
3376
if (alreadyImportedResult != Impl.ImportedDecls .end ())
3377
3377
return alreadyImportedResult->second ;
3378
3378
result = Impl.createDeclWithClangNode <StructDecl>(
3379
- decl, AccessLevel::Public,
3380
- SourceLoc (), // FIXME: Impl.importSourceLoc(decl->getBeginLoc()) results in a bad import: SR-15440
3381
- name,
3382
- SourceLoc (), // FIXME: Impl.importSourceLoc(decl->getLocation()) result in a bad import: SR-15440
3383
- None, nullptr , dc);
3379
+ decl, AccessLevel::Public, Impl.importSourceLoc (decl->getBeginLoc ()),
3380
+ name, Impl.importSourceLoc (decl->getLocation ()), None, nullptr , dc);
3384
3381
Impl.ImportedDecls [{decl->getCanonicalDecl (), getVersion ()}] = result;
3385
3382
3386
3383
// FIXME: Figure out what to do with superclasses in C++. One possible
@@ -4218,7 +4215,7 @@ namespace {
4218
4215
Impl.createDeclWithClangNode <VarDecl>(decl, AccessLevel::Public,
4219
4216
/* IsStatic*/ false ,
4220
4217
VarDecl::Introducer::Var,
4221
- SourceLoc (), // FIXME: Impl.importSourceLoc(decl->getLocation()) result in a bad import: SR-15440
4218
+ Impl.importSourceLoc (decl->getLocation ()),
4222
4219
name, dc);
4223
4220
if (decl->getType ().isConstQualified ()) {
4224
4221
// Note that in C++ there are ways to change the values of const
@@ -6942,7 +6939,7 @@ ConstructorDecl *SwiftDeclConverter::importConstructor(
6942
6939
assert (!importedName.getAsyncInfo ());
6943
6940
auto result = Impl.createDeclWithClangNode <ConstructorDecl>(
6944
6941
objcMethod, AccessLevel::Public, importedName.getDeclName (),
6945
- /* NameLoc=*/ Impl. importSourceLoc (objcMethod-> getBeginLoc () ), failability, /* FailabilityLoc=*/ SourceLoc (),
6942
+ /* NameLoc=*/ SourceLoc ( ), failability, /* FailabilityLoc=*/ SourceLoc (),
6946
6943
/* Async=*/ false , /* AsyncLoc=*/ SourceLoc (),
6947
6944
/* Throws=*/ importedName.getErrorInfo ().hasValue (),
6948
6945
/* ThrowsLoc=*/ SourceLoc (), bodyParams,
0 commit comments