summaryrefslogtreecommitdiff
path: root/source/slang/slang-mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-mangle.cpp')
-rw-r--r--source/slang/slang-mangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index de1b58999..4d94d5283 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -424,7 +424,7 @@ namespace Slang
// in place for the parent generic declaration, or we don't.
auto subst = findInnerMostGenericSubstitution(declRef.getSubst());
- if( subst && subst->genericDecl == parentGenericDeclRef.getDecl() )
+ if( subst && subst->getGenericDecl() == parentGenericDeclRef.getDecl())
{
// This is the case where we *do* have substitutions.
emitRaw(context, "G");