summaryrefslogtreecommitdiffstats
path: root/Source/cmImportedCxxModuleInfo.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-03-01 16:18:18 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-03-01 16:23:44 (GMT)
commit844f054fe058977380bba1c29d4546c1357a718d (patch)
tree7d1f20da077b5e3568b72a486e090540515833f7 /Source/cmImportedCxxModuleInfo.cxx
parentd16ac6f801224b8d35aabacf64ea7301df396c8c (diff)
downloadCMake-844f054fe058977380bba1c29d4546c1357a718d.zip
CMake-844f054fe058977380bba1c29d4546c1357a718d.tar.gz
CMake-844f054fe058977380bba1c29d4546c1357a718d.tar.bz2
cmImportedCxxModuleInfo: remove unused pointer field
Also avoids usage of an invalid `importit` when module names are not available.
Diffstat (limited to 'Source/cmImportedCxxModuleInfo.cxx')
-rw-r--r--Source/cmImportedCxxModuleInfo.cxx3
1 files changed, 1 insertions, 2 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;
}