diff options
Diffstat (limited to 'source/slang/mangle.cpp')
| -rw-r--r-- | source/slang/mangle.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp index cd90a0e41..bde4e12c7 100644 --- a/source/slang/mangle.cpp +++ b/source/slang/mangle.cpp @@ -117,10 +117,6 @@ namespace Slang { emitQualifiedName(context, declRefType->declRef); } - else if (auto assocTypeDeclRefType = dynamic_cast<AssocTypeDeclRefType*>(type)) - { - emitQualifiedName(context, assocTypeDeclRefType->declRef); - } else { SLANG_UNEXPECTED("unimplemented case in mangling"); @@ -199,7 +195,7 @@ namespace Slang // There are two cases here: either we have specializations // in place for the parent generic declaration, or we don't. - auto subst = declRef.substitutions; + auto subst = declRef.substitutions.As<GenericSubstitution>(); if( subst && subst->genericDecl == parentGenericDeclRef.getDecl() ) { // This is the case where we *do* have substitutions. |
