summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-08-20 18:55:55 -0400
committerGitHub <noreply@github.com>2024-08-20 15:55:55 -0700
commit6b1b2432060944cb1d812d3afffac65e2b8b9d1d (patch)
tree9bd98079100a7a4c48df4c2ba0c0858fc6eb816d
parent77e6c6470e1aeac14ea31ba493b71f053e66f404 (diff)
Track uninitialized values of `Ptr<Specialize<T>>` inside type `T` without hang (#4885)
* Track uninitialized values of `Ptr<Specialize<T>>` inside type `T` without hang Fixes #4878 Track uninitialized values of `Ptr<Specialize<T>>` inside type `T` without hang * change method used to resolve base of specialization
-rw-r--r--source/slang/slang-ir-use-uninitialized-values.cpp2
1 files changed, 2 insertions, 0 deletions
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<IRType>(getResolvedInstForDecorations(ptype)))
+ ptype = resolvedType;
return (ptype != upper) && canIgnoreType(ptype, upper);
}