Просмотр исходного кода

Merge topic 'cxxmodules-invalid-iterator' into release-3.29

844f054fe0 cmImportedCxxModuleInfo: remove unused pointer field

Acked-by: Kitware Robot <[email protected]>
Acked-by: buildbot <[email protected]>
Merge-request: !9303
Brad King 1 год назад
Родитель
Сommit
37ddb04738
2 измененных файлов с 1 добавлено и 3 удалено
  1. 1 2
      Source/cmImportedCxxModuleInfo.cxx
  2. 0 1
      Source/cmImportedCxxModuleInfo.h

+ 1 - 2
Source/cmImportedCxxModuleInfo.cxx

@@ -69,7 +69,6 @@ std::string ImportedCxxModuleLookup::BmiNameForSource(std::string const& path)
     bmiName = cmStrCat(dirhash.substr(0, HASH_TRUNCATION), ".bmi");
   }
 
-  this->GeneratorInfo.emplace(
-    path, ImportedCxxModuleGeneratorInfo{ &importit->second, bmiName });
+  this->GeneratorInfo.emplace(path, ImportedCxxModuleGeneratorInfo{ bmiName });
   return bmiName;
 }

+ 0 - 1
Source/cmImportedCxxModuleInfo.h

@@ -16,7 +16,6 @@ struct ImportedCxxModuleInfo
 
 struct ImportedCxxModuleGeneratorInfo
 {
-  ImportedCxxModuleInfo const* ImportedInfo;
   std::string const BmiName;
 };