diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-03 09:38:02 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-03 09:38:02 -0400 |
| commit | a0458266d7cd5d802b8c51e6a997b4bf0d9beb82 (patch) | |
| tree | 39f16538178907240e59b8e531ae153391805833 /source/slang/mangle.cpp | |
| parent | d5e2319c33115d0241dd9d2047c0a5f029553dde (diff) | |
in-progress work
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. |
