From 6b1b2432060944cb1d812d3afffac65e2b8b9d1d Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:55:55 -0400 Subject: Track uninitialized values of `Ptr>` inside type `T` without hang (#4885) * Track uninitialized values of `Ptr>` inside type `T` without hang Fixes #4878 Track uninitialized values of `Ptr>` inside type `T` without hang * change method used to resolve base of specialization --- source/slang/slang-ir-use-uninitialized-values.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/slang/slang-ir-use-uninitialized-values.cpp b/source/slang/slang-ir-use-uninitialized-values.cpp index 8b940d30d..43fcb16c9 100644 --- a/source/slang/slang-ir-use-uninitialized-values.cpp +++ b/source/slang/slang-ir-use-uninitialized-values.cpp @@ -180,6 +180,8 @@ namespace Slang // Avoid the recursive step if its a // recursive structure like a linked list IRType* ptype = ptr->getValueType(); + if(auto resolvedType = as(getResolvedInstForDecorations(ptype))) + ptype = resolvedType; return (ptype != upper) && canIgnoreType(ptype, upper); } -- cgit v1.2.3