aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-08-15 10:27:57 +0100
committergingerBill <bill@gingerbill.org>2022-08-15 10:27:57 +0100
commit5a9422b6bcda8ed7fe3f0e91db916764662397e5 (patch)
tree1c90a488b92b9185182f8f6a0fd1e6b05cf4f24c /src/checker.cpp
parent0c8d59dd203bb766c92329dd81a8ed5359c324cb (diff)
parentd30198c99af7b3346ee6305e6306c379ddd2ffa2 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index c75fc86af..d01dc5323 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1170,6 +1170,8 @@ void init_checker_info(CheckerInfo *i) {
mutex_init(&i->objc_types_mutex);
map_init(&i->objc_msgSend_types, a);
+ mutex_init(&i->load_file_mutex);
+ string_map_init(&i->load_file_cache, a);
}
void destroy_checker_info(CheckerInfo *i) {
@@ -1205,6 +1207,8 @@ void destroy_checker_info(CheckerInfo *i) {
mutex_destroy(&i->objc_types_mutex);
map_destroy(&i->objc_msgSend_types);
+ mutex_init(&i->load_file_mutex);
+ string_map_destroy(&i->load_file_cache);
}
CheckerContext make_checker_context(Checker *c) {