summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-21 16:26:52 -0800
committerTim Foley <tfoleyNV@users.noreply.github.com>2018-01-21 16:26:52 -0800
commit8196dc4a684a75344e507697273e2123af97b979 (patch)
treedbee3f92a10f15a9f7202010e1683b369c38ba15 /source/slang/syntax.cpp
parent4044a1d3a0605198465a7eb6e0e3c1f8b1a3c298 (diff)
specialize witness tables when needed when specializing `lookup_witness_table` instruction. (#376)
Diffstat (limited to 'source/slang/syntax.cpp')
-rw-r--r--source/slang/syntax.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp
index ab4a5f94c..3bccf51ce 100644
--- a/source/slang/syntax.cpp
+++ b/source/slang/syntax.cpp
@@ -856,7 +856,12 @@ void Type::accept(IValVisitor* visitor, void* extra)
Type* ErrorType::CreateCanonicalType()
{
- return this;
+ return this;
+ }
+
+ RefPtr<Val> ErrorType::SubstituteImpl(SubstitutionSet /*subst*/, int* /*ioDiff*/)
+ {
+ return this;
}
int ErrorType::GetHashCode()