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 @@ -1186,13 +1186,17 @@ void Module::ReportWarningCantLoadSwiftModule(
1186
1186
&m_swift_import_warning);
1187
1187
}
1188
1188
1189
+ static llvm::VersionTuple GetAdjustedVersion (llvm::VersionTuple version) {
1190
+ return version;
1191
+ }
1192
+
1189
1193
void Module::ReportWarningToolchainMismatch (
1190
1194
CompileUnit &comp_unit, llvm::Optional<lldb::user_id_t > debugger_id) {
1191
1195
if (SymbolFile *sym_file = GetSymbolFile ()) {
1192
1196
llvm::VersionTuple sym_file_version =
1193
- sym_file->GetProducerVersion (comp_unit);
1197
+ GetAdjustedVersion ( sym_file->GetProducerVersion (comp_unit) );
1194
1198
llvm::VersionTuple swift_version =
1195
- swift::version::getCurrentCompilerVersion ();
1199
+ GetAdjustedVersion ( swift::version::getCurrentCompilerVersion () );
1196
1200
if (sym_file_version != swift_version) {
1197
1201
std::string str = llvm::formatv (
1198
1202
" {0} was compiled with a different Swift compiler "
You can’t perform that action at this time.
0 commit comments