Skip to content

Commit f86bbac

Browse files
committed
Fix issue where target.source-map didn't apply to SwiftASTContext::CreateInstance
This specifically is for SwiftASTContext::CreateInstance with a TypeSystemSwiftTypeRef, the other version works as expected.
1 parent b10858e commit f86bbac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,10 @@ SwiftASTContext::CreateInstance(lldb::LanguageType language, Module &module,
25552555

25562556
// Apply source path remappings found in the module's dSYM.
25572557
swift_ast_sp->RemapClangImporterOptions(module.GetSourceMappingList());
2558+
2559+
// Apply source path remappings found in the target settings.
2560+
if (target)
2561+
swift_ast_sp->RemapClangImporterOptions(target->GetSourcePathMap());
25582562
swift_ast_sp->FilterClangImporterOptions(
25592563
swift_ast_sp->GetClangImporterOptions().ExtraArgs, swift_ast_sp.get());
25602564

0 commit comments

Comments
 (0)