summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-03-21 15:44:43 -0700
committerGitHub <noreply@github.com>2023-03-21 15:44:43 -0700
commit5d2c5dd9f748d728abf2a4361fca71a7f9ec65b6 (patch)
treeba7a6b01b90bbb449469eae4f638b8e8f180e151 /source
parent96caba75e8dfbb879eff12cbe1a4c148a259f684 (diff)
Fix IntVal type check. (#2718)
* Fix IntVal type check. * add test case result. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-check-decl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 3779f48e3..580ad8402 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -642,6 +642,9 @@ namespace Slang
}
else if( auto genericValueParamDecl = as<GenericValueParamDecl>(mm) )
{
+ if (semantics)
+ ensureDecl(semantics, genericValueParamDecl, DeclCheckState::ReadyForLookup);
+
args.add(astBuilder->getOrCreate<GenericParamIntVal>(
genericValueParamDecl->getType(),
genericValueParamDecl, outerSubst));