Fix DXIL debugger hang if an unhandled DICompositeType is used

There was an infinite loop if the unhandled debug data is mapped to a struct member
This commit is contained in:
Jake Turner
2026-01-24 07:20:52 +13:00
parent eba1a12648
commit d729deec1c
+1 -1
View File
@@ -8108,12 +8108,12 @@ const TypeData &Debugger::AddDebugType(const DXIL::Metadata *typeMD)
case DXIL::DIBase::Type::CompositeType:
{
const DICompositeType *compositeType = base->As<DICompositeType>();
typeData.baseType = typeMD;
switch(compositeType->tag)
{
case DW_TAG_class_type:
case DW_TAG_structure_type:
{
typeData.baseType = typeMD;
typeData.sizeInBytes = (uint32_t)(compositeType->sizeInBits / 8);
typeData.alignInBytes = (uint32_t)(compositeType->alignInBits / 8);