summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-04-12 06:59:49 -0700
committerGitHub <noreply@github.com>2024-04-12 06:59:49 -0700
commit99584007795a6d6b047698f16db123ba90ce7128 (patch)
treea16af3c79513291453635082d36fd9ea746e9e22 /source
parent4df7887f9e158ba0d5e3224c369459521a136bce (diff)
Fix another bug in entrypoint specialization arg synthesis. (#3933)
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-check-shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp
index 591118385..77a57d71e 100644
--- a/source/slang/slang-check-shader.cpp
+++ b/source/slang/slang-check-shader.cpp
@@ -1242,7 +1242,7 @@ namespace Slang
// Find the generic argument index of the corresponding generic parameter type in the
// generic parameter set.
//
- for (auto member : genericDeclRef.getDecl()->members)
+ for (auto member : genericDeclRef.getDecl()->getMembersOfType<GenericTypeParamDecl>())
{
if (member == genParamDeclRef.getDecl())
{