summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-03 09:38:02 -0400
committerYong He <yonghe@outlook.com>2017-11-03 09:38:02 -0400
commita0458266d7cd5d802b8c51e6a997b4bf0d9beb82 (patch)
tree39f16538178907240e59b8e531ae153391805833 /source/slang/emit.cpp
parentd5e2319c33115d0241dd9d2047c0a5f029553dde (diff)
in-progress work
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 9caad2e1a..2627e1f37 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -1052,15 +1052,6 @@ struct EmitVisitor
EmitDeclarator(arg.declarator);
}
- void visitAssocTypeDeclRefType(AssocTypeDeclRefType* /*type*/, TypeEmitArg const& /*arg*/)
- {
- //SLANG_UNREACHABLE("visitAssocTypeDeclRefType in EmitVisitor");
- }
- void visitGenericConstraintDeclRefType(GenericConstraintDeclRefType* /*type*/, TypeEmitArg const& /*arg*/)
- {
- //SLANG_UNREACHABLE("visitGenericConstraintDeclRefType in EmitVisitor");
- }
-
void visitBasicExpressionType(BasicExpressionType* basicType, TypeEmitArg const& arg)
{
auto declarator = arg.declarator;
@@ -2925,7 +2916,7 @@ struct EmitVisitor
return;
}
- Substitutions* subst = declRef.substitutions.Ptr();
+ GenericSubstitution* subst = declRef.substitutions.As<GenericSubstitution>().Ptr();
if (!subst)
return;