Skip to content

Commit

Permalink
Track uninitialized values of Ptr<Specialize<T>> inside type T wi…
Browse files Browse the repository at this point in the history
…thout hang

Fixes shader-slang#4878
Track uninitialized values of `Ptr<Specialize<T>>` inside type `T` without hang
  • Loading branch information
ArielG-NV committed Aug 20, 2024
1 parent d286ff5 commit 4f56540
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/slang/slang-ir-use-uninitialized-values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ namespace Slang
// Avoid the recursive step if its a
// recursive structure like a linked list
IRType* ptype = ptr->getValueType();
if (auto spec = as<IRSpecialize>(ptype))
if(auto resolvedType = as<IRType>(resolveSpecialization(spec)))
ptype = resolvedType;
return (ptype != upper) && canIgnoreType(ptype, upper);
}

Expand Down

0 comments on commit 4f56540

Please sign in to comment.