cmImportedCxxModuleInfo: remove unused pointer field
Also avoids usage of an invalid `importit` when module names are not available.
This commit is contained in:
parent
d16ac6f801
commit
844f054fe0
@ -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;
|
||||
}
|
||||
|
@ -16,7 +16,6 @@ struct ImportedCxxModuleInfo
|
||||
|
||||
struct ImportedCxxModuleGeneratorInfo
|
||||
{
|
||||
ImportedCxxModuleInfo const* ImportedInfo;
|
||||
std::string const BmiName;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user