Don't re-cache same types if AddDebugType is called again

This commit is contained in:
baldurk
2025-01-10 11:20:00 +00:00
parent d4ecc62684
commit d526a1a076
@@ -6434,6 +6434,12 @@ ScopedDebugData *Debugger::AddScopedDebugData(const DXIL::Metadata *scopeMD)
const TypeData &Debugger::AddDebugType(const DXIL::Metadata *typeMD)
{
{
auto it = m_DebugInfo.types.find(typeMD);
if(it != m_DebugInfo.types.end())
return it->second;
}
TypeData typeData;
const DXIL::DIBase *base = typeMD->dwarf;