File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1188,13 +1188,17 @@ void Module::ReportWarningCantLoadSwiftModule(
1188
1188
&m_swift_import_warning);
1189
1189
}
1190
1190
1191
+ static llvm::VersionTuple GetAdjustedVersion (llvm::VersionTuple version) {
1192
+ return version;
1193
+ }
1194
+
1191
1195
void Module::ReportWarningToolchainMismatch (
1192
1196
CompileUnit &comp_unit, llvm::Optional<lldb::user_id_t > debugger_id) {
1193
1197
if (SymbolFile *sym_file = GetSymbolFile ()) {
1194
1198
llvm::VersionTuple sym_file_version =
1195
- sym_file->GetProducerVersion (comp_unit);
1199
+ GetAdjustedVersion ( sym_file->GetProducerVersion (comp_unit) );
1196
1200
llvm::VersionTuple swift_version =
1197
- swift::version::getCurrentCompilerVersion ();
1201
+ GetAdjustedVersion ( swift::version::getCurrentCompilerVersion () );
1198
1202
if (sym_file_version != swift_version) {
1199
1203
std::string str = llvm::formatv (
1200
1204
" {0} was compiled with a different Swift compiler "
You can’t perform that action at this time.
0 commit comments