Skip to content

Commit f25cf30

Browse files
Merge pull request #11840 from cachemeifyoucan/eng/PR-164903080-lldb-release
[6.3][lldb][Swift] Update LLDB swift API after reverting CASOptions changes
2 parents de373d2 + fdcb113 commit f25cf30

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,10 @@ static void ConfigureCASStorage(SwiftASTContext *m_ast_context,
929929
}
930930
m_ast_context->SetCASStorage(std::move(maybe_cas->first),
931931
std::move(maybe_cas->second));
932-
m_ast_context->GetCASOptions().Config = *cas_config;
932+
m_ast_context->GetCASOptions().CASOpts.CASPath = cas_config->CASPath;
933+
m_ast_context->GetCASOptions().CASOpts.PluginPath = cas_config->PluginPath;
934+
m_ast_context->GetCASOptions().CASOpts.PluginOptions =
935+
cas_config->PluginOptions;
933936
LOG_PRINTF(GetLog(LLDBLog::Types),
934937
"Setup CAS from module list properties with cas path: %s",
935938
cas_config->CASPath.c_str());
@@ -1980,10 +1983,10 @@ void SwiftASTContext::AddExtraClangCC1Args(
19801983
bool use_cas_module = m_cas && m_action_cache;
19811984
if (use_cas_module) {
19821985
// Load from CAS.
1983-
invocation.getCASOpts().CASPath = GetCASOptions().Config.CASPath;
1984-
invocation.getCASOpts().PluginPath = GetCASOptions().Config.PluginPath;
1986+
invocation.getCASOpts().CASPath = GetCASOptions().CASOpts.CASPath;
1987+
invocation.getCASOpts().PluginPath = GetCASOptions().CASOpts.PluginPath;
19851988
invocation.getCASOpts().PluginOptions =
1986-
GetCASOptions().Config.PluginOptions;
1989+
GetCASOptions().CASOpts.PluginOptions;
19871990

19881991
use_cas_module = llvm::all_of(
19891992
invocation.getFrontendOpts().ModuleCacheKeys, [&](const auto &entry) {

0 commit comments

Comments
 (0)