@@ -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