@@ -1330,15 +1330,14 @@ void SwiftASTContext::DiagnoseWarnings(Process &process, Module &module) const {
1330
1330
// / Retrieve the serialized AST data blobs and initialize the compiler
1331
1331
// / invocation with the concatenated search paths from the blobs.
1332
1332
// / \returns true if an error was encountered.
1333
- static bool DeserializeAllCompilerFlags (SwiftASTContext &swift_ast ,
1333
+ static bool DeserializeAllCompilerFlags (swift::CompilerInvocation &invocation ,
1334
1334
Module &module ,
1335
1335
const std::string &m_description,
1336
1336
llvm::raw_ostream &error,
1337
1337
bool &got_serialized_options,
1338
1338
bool &found_swift_modules) {
1339
1339
bool found_validation_errors = false ;
1340
1340
got_serialized_options = false ;
1341
- auto &invocation = swift_ast.GetCompilerInvocation ();
1342
1341
auto ast_file_datas = module .GetASTData (eLanguageTypeSwift);
1343
1342
LOG_PRINTF (LIBLLDB_LOG_TYPES, " Found %d AST file data entries." ,
1344
1343
(int )ast_file_datas.size ());
@@ -1739,9 +1738,9 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(lldb::LanguageType language,
1739
1738
bool got_serialized_options = false ;
1740
1739
llvm::SmallString<0 > error;
1741
1740
llvm::raw_svector_ostream errs (error);
1742
- if (DeserializeAllCompilerFlags (*swift_ast_sp, module , m_description, errs,
1743
- got_serialized_options ,
1744
- found_swift_modules)) {
1741
+ if (DeserializeAllCompilerFlags (
1742
+ swift_ast_sp-> GetCompilerInvocation (), module , m_description, errs ,
1743
+ got_serialized_options, found_swift_modules)) {
1745
1744
// Validation errors are not fatal for the context.
1746
1745
swift_ast_sp->m_module_import_warnings .push_back (std::string (error));
1747
1746
}
0 commit comments