From 7ce7bb3364cf84f5a9247358dcec79ba5aef8572 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 1 Oct 2024 09:34:31 -0700 Subject: Fix crash when compiling associatedtypes with generic interface constraints. (#5200) * Fix crash when compiling associatedtypes with generic interface constraints. * delete hlsl.meta.slang.temp.h. * Fix. --- source/slang/slang-ast-decl-ref.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-ast-decl-ref.cpp') diff --git a/source/slang/slang-ast-decl-ref.cpp b/source/slang/slang-ast-decl-ref.cpp index f3c237775..6087efb26 100644 --- a/source/slang/slang-ast-decl-ref.cpp +++ b/source/slang/slang-ast-decl-ref.cpp @@ -419,6 +419,10 @@ GenericAppDeclRef* SubstitutionSet::findGenericAppDeclRef() const { return genApp; } + else if (as(s)) + { + return nullptr; + } } return nullptr; } -- cgit v1.2.3