summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yongh@outlook.com>2018-01-03 12:38:48 -0800
committerYong He <yongh@outlook.com>2018-01-03 12:38:48 -0800
commitf52b93e15d68054a06db84ff86d077d9ce0af941 (patch)
treefc3089b5f591d7277e5aa0d80b6a6bf194bbf12a /source
parent1e0aabf4b28f48bfbfee7b1a9c08031892c004d0 (diff)
add call to `EnsureDecl` in `SpecializeGenericForOverload`.
Diffstat (limited to 'source')
-rw-r--r--source/slang/check.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index bc5d144b0..dc5efbd73 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -5348,6 +5348,8 @@ namespace Slang
DeclRef<GenericDecl> genericDeclRef,
OverloadResolveContext& context)
{
+ EnsureDecl(genericDeclRef.getDecl());
+
ConstraintSystem constraints;
constraints.genericDecl = genericDeclRef.getDecl();