From 74852ceb6b3bcc018042aba3e30933b7b6fc09ef Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 12 Feb 2025 14:58:00 -0800 Subject: Allow LHS of `where` to be any type. (#6333) * Allow LHS of `where` to be any type. * Register free-form extensions when loading precompiled module. * Fix test. * Fix. * Fix `as`. * try fix precompiled module test. --- source/slang/slang-ir-use-uninitialized-values.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-use-uninitialized-values.cpp') diff --git a/source/slang/slang-ir-use-uninitialized-values.cpp b/source/slang/slang-ir-use-uninitialized-values.cpp index 51de2117c..71aae5923 100644 --- a/source/slang/slang-ir-use-uninitialized-values.cpp +++ b/source/slang/slang-ir-use-uninitialized-values.cpp @@ -186,7 +186,7 @@ static bool canIgnoreType(IRType* type, IRType* upper) if (auto spec = as(type)) { IRInst* inner = getResolvedInstForDecorations(spec); - IRType* innerType = as(inner); + IRType* innerType = (IRType*)(inner); return canIgnoreType(innerType, upper); } -- cgit v1.2.3