Skip to content

Commit 19e22bd

Browse files
committed
[rebranch][lldb] Update Target::GetGlobalProperties reference
3d7161e changed `GetGlobalProperties` from returning a `std::shared_ptr` to a reference.
1 parent e018988 commit 19e22bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,8 +1811,8 @@ SwiftASTContext::CreateInstance(lldb::LanguageType language, Module &module,
18111811
swift_ast_sp->AddExtraClangArgs(DeserializedArgs);
18121812
if (target)
18131813
swift_ast_sp->AddUserClangArgs(*target);
1814-
else if (auto &global_target_properties = Target::GetGlobalProperties())
1815-
swift_ast_sp->AddUserClangArgs(*global_target_properties);
1814+
else
1815+
swift_ast_sp->AddUserClangArgs(Target::GetGlobalProperties());
18161816

18171817
// Apply source path remappings found in the module's dSYM.
18181818
swift_ast_sp->RemapClangImporterOptions(module.GetSourceMappingList());

0 commit comments

Comments
 (0)