diff --git a/Source/cmImportedCxxModuleInfo.cxx b/Source/cmImportedCxxModuleInfo.cxx index c54b265cba..ad49a8dce5 100644 --- a/Source/cmImportedCxxModuleInfo.cxx +++ b/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; } diff --git a/Source/cmImportedCxxModuleInfo.h b/Source/cmImportedCxxModuleInfo.h index e0522839d1..1b29a065f4 100644 --- a/Source/cmImportedCxxModuleInfo.h +++ b/Source/cmImportedCxxModuleInfo.h @@ -16,7 +16,6 @@ struct ImportedCxxModuleInfo struct ImportedCxxModuleGeneratorInfo { - ImportedCxxModuleInfo const* ImportedInfo; std::string const BmiName; };