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