aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-01 12:15:38 +0000
committergingerBill <bill@gingerbill.org>2021-03-01 12:15:38 +0000
commit9e0210f7f636f6b75376ad9fe385ab2cb736896b (patch)
tree42722970ce80db4b5910258799252ab1c34c0cfb /src/checker.cpp
parent302742689b68d36e2adc49eda5f480da182d2653 (diff)
parent6ffb4d268304fc098b05cd38a4adc9207256e16b (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 8bcf40842..4a3074f34 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1724,6 +1724,10 @@ void add_dependency_to_set(Checker *c, Entity *entity) {
void force_add_dependency_entity(Checker *c, Scope *scope, String const &name) {
Entity *e = scope_lookup(scope, name);
+ if (e == nullptr) {
+ return;
+ }
+ GB_ASSERT_MSG(e != nullptr, "unable to find %.*s", LIT(name));
e->flags |= EntityFlag_Used;
add_dependency_to_set(c, e);
}
@@ -4381,12 +4385,6 @@ GB_THREAD_PROC(check_proc_info_worker_proc) {
}
void check_unchecked_bodies(Checker *c) {
-#if !defined(GB_SYSTEM_WINDOWS)
- // HACK TODO(2021-02-26, bill): THIS IS A FUCKING HACK
- if (true) {
- return;
- }
-#endif
// NOTE(2021-02-26, bill): Sanity checker
// This is a partial hack to make sure all procedure bodies have been checked
// even ones which should not exist, due to the multithreaded nature of the parser