summaryrefslogtreecommitdiff
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-05-02 23:01:48 -0400
committerGitHub <noreply@github.com>2018-05-02 23:01:48 -0400
commit78935493587ec65a199d844327613021667acc1b (patch)
treed516c031a4e927aa5444bfa1d1a158f58e957050 /source/slang/slang.cpp
parent384df864fdd2c518924d32295a13894f16295d43 (diff)
parent235d6aac8a78e9ecc2f1fb1e17d1f61c3f592b76 (diff)
Merge pull request #543 from csyonghe/master
Speedup type checking using cached overload resolution results.
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 9e740d5f5..3cb580f00 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -823,6 +823,8 @@ Session::~Session()
irBasicBlockType = nullptr;
constExprRate = nullptr;
+ destroyTypeCheckingCache();
+
builtinTypes = decltype(builtinTypes)();
// destroy modules next
loadedModuleCode = decltype(loadedModuleCode)();