mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user