summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-decl-ref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-decl-ref.cpp')
-rw-r--r--source/slang/slang-ast-decl-ref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ast-decl-ref.cpp b/source/slang/slang-ast-decl-ref.cpp
index 1881f1b3c..89fa52b09 100644
--- a/source/slang/slang-ast-decl-ref.cpp
+++ b/source/slang/slang-ast-decl-ref.cpp
@@ -41,7 +41,7 @@ DeclRefBase* _getDeclRefFromVal(Val* val)
{
if (auto declRefType = as<DeclRefType>(val))
return declRefType->getDeclRef();
- else if (auto genParamIntVal = as<GenericParamIntVal>(val))
+ else if (auto genParamIntVal = as<DeclRefIntVal>(val))
return genParamIntVal->getDeclRef();
else if (auto declaredSubtypeWitness = as<DeclaredSubtypeWitness>(val))
return declaredSubtypeWitness->getDeclRef();