summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-decl-ref.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-10-01 09:34:31 -0700
committerGitHub <noreply@github.com>2024-10-01 09:34:31 -0700
commit7ce7bb3364cf84f5a9247358dcec79ba5aef8572 (patch)
tree440f41317666c4fcd2f036c5ae7575f98e8f6de9 /source/slang/slang-ast-decl-ref.cpp
parentc6427e36b31df41c6415570f4e8277f56e265c2a (diff)
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.
Diffstat (limited to 'source/slang/slang-ast-decl-ref.cpp')
-rw-r--r--source/slang/slang-ast-decl-ref.cpp4
1 files changed, 4 insertions, 0 deletions
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<LookupDeclRef>(s))
+ {
+ return nullptr;
+ }
}
return nullptr;
}