Skip to content

Commit d729dee

Browse files
committed
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
1 parent eba1a12 commit d729dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderdoc/driver/shaders/dxil/dxil_debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8108,12 +8108,12 @@ const TypeData &Debugger::AddDebugType(const DXIL::Metadata *typeMD)
81088108
case DXIL::DIBase::Type::CompositeType:
81098109
{
81108110
const DICompositeType *compositeType = base->As<DICompositeType>();
8111-
typeData.baseType = typeMD;
81128111
switch(compositeType->tag)
81138112
{
81148113
case DW_TAG_class_type:
81158114
case DW_TAG_structure_type:
81168115
{
8116+
typeData.baseType = typeMD;
81178117
typeData.sizeInBytes = (uint32_t)(compositeType->sizeInBits / 8);
81188118
typeData.alignInBytes = (uint32_t)(compositeType->alignInBits / 8);
81198119

0 commit comments

Comments
 (0)