From 844f054fe058977380bba1c29d4546c1357a718d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 1 Mar 2024 11:18:18 -0500 Subject: cmImportedCxxModuleInfo: remove unused pointer field Also avoids usage of an invalid `importit` when module names are not available. --- Source/cmImportedCxxModuleInfo.cxx | 3 +-- Source/cmImportedCxxModuleInfo.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/cmImportedCxxModuleInfo.cxx b/Source/cmImportedCxxModuleInfo.cxx index c54b265..ad49a8d 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 e052283..1b29a06 100644 --- a/Source/cmImportedCxxModuleInfo.h +++ b/Source/cmImportedCxxModuleInfo.h @@ -16,7 +16,6 @@ struct ImportedCxxModuleInfo struct ImportedCxxModuleGeneratorInfo { - ImportedCxxModuleInfo const* ImportedInfo; std::string const BmiName; }; -- cgit v0.12