summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
-rw-r--r--source/slang/slang-ast-type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp
index 6d4a52cae..9704b4c87 100644
--- a/source/slang/slang-ast-type.cpp
+++ b/source/slang/slang-ast-type.cpp
@@ -103,7 +103,7 @@ Val* DeclRefType::_substituteImplOverride(ASTBuilder* astBuilder, SubstitutionSe
//
if (as<DirectDeclRef>(substDeclRef.declRefBase))
{
- if (auto thisDecl = as<ThisTypeDecl>(substDeclRef.getDecl()))
+ if (as<ThisTypeDecl>(substDeclRef.getDecl()))
{
auto lookupDeclRef = subst.findLookupDeclRef();
if (lookupDeclRef && lookupDeclRef->getSupDecl() == substDeclRef.getDecl()->parentDecl)