summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-inheritance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-inheritance.cpp')
-rw-r--r--source/slang/slang-check-inheritance.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-check-inheritance.cpp b/source/slang/slang-check-inheritance.cpp
index 8e867b4a7..5a6adbae5 100644
--- a/source/slang/slang-check-inheritance.cpp
+++ b/source/slang/slang-check-inheritance.cpp
@@ -32,6 +32,9 @@ namespace Slang
auto info = _calcInheritanceInfo(type);
m_mapTypeToInheritanceInfo[type] = info;
+ getSession()->m_typeDictionarySize = Math::Max(
+ getSession()->m_typeDictionarySize, (int)m_mapTypeToInheritanceInfo.getCount());
+
return info;
}